public void testOnRouteRequestWhenInternalServerErrorException() throws Exception {
FilterChain filterChain = Mockito.mock(FilterChain.class);
Mockito.when(route.getFilterChain()).thenReturn(filterChain);
InternalServerErrorException internalServerErrorException
= new InternalServerErrorException("That's an InternalServerErrorException that should be handled by onError!");
Mockito.when(filterChain.next(contextImpl)).thenThrow(internalServerErrorException);
ninjaDefault.onRouteRequest(contextImpl);