.produces(JSON)
.to(SampleController.class).findByWithCustomHeadersPrefix(param(PaginationInfo.class), param("color"));
}
}).addResponder(new JsonResponder()).spyController(new SampleController())
.param("color", "blue").param("offset", "0").param("limit", "5");
final InvocationResult result = routeTester.acceptHeader(JSON).processGetRequest("/ints");
final HttpServletResponse response = result.getRouteContext().getResponse();
verify(routeTester.<SampleController>getController()).findByWithCustomHeadersPrefix(any(PaginationInfo.class), eq("blue"));
verify(response).setHeader("Test-Links-Next", "http://localhost:8080/test/ints?color=blue&offset=5&limit=5");
verify(response, never()).setHeader(eq("Test-Links-Previous"), anyString());
assertThat(routeTester.getStringWriter().toString()).isEqualTo("[0,1,2,3,4]");