SimpleFormController controller = new SimpleFormController();
httpRequest.setParameter("ajax-request", "ajax-submit");
ModelAndView mv = ajaxExceptionHandler.resolveException(httpRequest, httpResponse, controller, new UnsupportedEventException("exception"));
assertTrue(mv.wasCleared());
}
public void testDoNotResolveException() throws Exception {
AjaxExceptionHandlerResolver ajaxExceptionHandler = (AjaxExceptionHandlerResolver) this.applicationContext.getBean("ajaxExceptionResolver");