public void testOnErrorWithFiltersExceptionFromFirstFilterSecondFilterHandles() throws Exception
{
// App stuff.
RestLiServiceException exFromApp = new RestLiServiceException(HttpStatus.S_404_NOT_FOUND, "App failure");
RequestExecutionReport executionReport = new RequestExecutionReportBuilder().build();
ErrorResponse appErrorResponse = new ErrorResponse().setStatus(404);
AugmentedRestLiResponseData responseAppData =
new AugmentedRestLiResponseData.Builder(ResourceMethod.GET).status(HttpStatus.S_404_NOT_FOUND)
.errorResponse(appErrorResponse).build();
// Filter stuff.
final Exception exFromFirstFilter = new RuntimeException("Runtime exception from first filter");
ErrorResponse filterErrorResponse = new ErrorResponse().setStatus(500);
AugmentedRestLiResponseData responseFilterData =
new AugmentedRestLiResponseData.Builder(ResourceMethod.GET).status(HttpStatus.S_500_INTERNAL_SERVER_ERROR)
.errorResponse(filterErrorResponse).build();
final RecordTemplate entityFromFilter2 = Foo.createFoo("Key", "Two");