Route { public String method() { return method; } 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 testMethod() { assertThat(Route.of("GET", "/foo").method(), is("GET")); assertThat(Route.of("FOOBAR", "/foo").method(), is("FOOBAR")); }