expect(fn () => new Route( new PathSegment(SpecialSegment::Root), HttpMethod::Get, fn () => null )) ->toBeInstanceOf(Route::class);