.from("/ints")
.on(GET)
.produces(JSON)
.to(SampleController.class).findByWithDefaults(param(PaginationInfo.class), param("color"));
}
}).spyController(new SampleController()).addResponder(new JsonResponder());
final InvocationResult result = routeTester.acceptHeader(JSON).processGetRequest("/ints?color=blue");
verify(result.getRouteContext().getResponse()).setHeader(eq("Link"), anyString());
verify(routeTester.<SampleController>getController()).findByWithDefaults(any(PaginationInfo.class), eq("blue"));
assertThat(routeTester.getStringWriter().toString()).isEqualTo("[0,1,2,3,4,5,6,7,8,9]");
}