verify(routeTester.<SampleController>getController()).find("red", "Ferrari");
}
@Test
public void testCookieParameters() throws Exception {
final RouteTester routeTester = RouteTester.from(new AbstractRoutingModule() {
@Override
public void configuration() {
route()
.from("/cars")
.on(RequestMethod.GET)
.produces(JSP)
.to(SampleController.class).find(param("color"), param("brand", "Ferrari"));
}
}).acceptHeader(HTML).cookie("brand", "Ferrari").cookie("color", "red");
routeTester.processGetRequest("/cars");
verify(routeTester.<SampleController>getController()).find("red", "Ferrari");
}