.from("/ints")
.on(RequestMethod.GET)
.produces(JSON)
.to(SampleController.class).findByWithCustomParamNames(param(PaginationInfo.class), param("brand"));
}
}).acceptHeader(JSON).addResponder(new JsonResponder()).spyController(new SampleController());
final InvocationResult result = routeTester.processGetRequest("/ints?brand=BMW&myoffset=50&mylimit=5");
final HttpServletResponse response = result.getRouteContext().getResponse();
verify(routeTester.<SampleController>getController()).findByWithCustomParamNames(any(PaginationInfo.class), eq("BMW"));
verify(response).setHeader("TS-Links-Previous", "http://localhost:8080/test/ints?brand=BMW&myoffset=45&mylimit=5");
verify(response, never()).setHeader(eq("TS-Links-Next"), anyString());