}
}).acceptHeader(JSP).spyController(new SampleController());
routeTester.processGetRequest("/home");
verify(routeTester.getErrorTarget()).error(any(SampleControllerException.class));
verify(routeTester.errorViewResponder()).respond(anyObject(), any(RouteContext.class));
assertThat(routeTester.errorViewResponder().getViewResolver()).isInstanceOf(ErrorViewResolver.class);
}
@Test
public void testJsonResponseOnException() throws Exception {
final RouteTester routeTester = RouteTester.from(new AbstractRoutingModule() {