Route { public String pathString() { return path.toString(); } private  Route(final String method, final Path path); String method(); String pathString(); List<String> captureNames(); List<ParameterType> captureParameterTypes(); @Override String toString(); static Route of(final CharSequence method, final CharSequence uri);  }
@Test public void testPathString() { final String path = "/foo/<bar>/baz/<quux:path>"; assertThat(Route.of("GET", path).pathString(), is(path)); }