SystemExceptionResolver extends SimpleMappingExceptionResolver { @Override protected ModelAndView doResolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) { ModelAndView modelAndView = super.doResolveException(request, response, handler, ex); if (modelAndView == null) { return modelAndView; } setExceptionInfo(ex, request, response); return modelAndView; }  void setExceptionCodeAttribute(String exceptionCodeAttribute); void setExceptionCodeHeader(String exceptionCodeHeader); void setResultMessagesAttribute(String resultMessagesAttribute); void setExceptionCodeResolver(
            ExceptionCodeResolver exceptionCodeResolver);  }
@Test public void testDoResolveException_super_return_null() { ModelAndView actualModleAndView = testTarget.doResolveException( mockRequest, mockResponse, null, new Exception()); assertThat(actualModleAndView, is(nullValue())); }