Route { @Override public String toString() { return method + " " + path; } 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 testToString() { final String path = "/foo/<bar>/baz/<quux:path>"; final String method = "GET"; assertThat(Route.of(method, path).toString(), is(method + " " + path)); }