assertThat(evs.resolveViewPathFor(customErrorRoute)).isEqualTo("/WEB-INF/pages/ErrorTarget/errorPage.jsp");
}
@SuppressWarnings("unchecked")
private Route customErrorRoute(final Class<? extends Throwable> t) throws Exception {
final RouteDescriptor rd = new RouteDescriptor();
rd.setPath("ErrorFilter").setThrowables(new HashSet<Class<? extends Throwable>>(Arrays.asList(t)))
.on(RequestMethod.GET).to(ErrorTarget.class).errorPage();
return new DefaultRoute(rd);
}