### Question:
BaseValueListController extends BaseController { protected ModelAndView handleValueListException(ValueListException ve, HttpServletRequest req, HttpServletResponse res) { if (isAjaxRequest(req)) { return handleAjaxException(new AjaxException(ve), res); } ModelAndView modelAndView = getErrorView(req); modelAndView.getModel().put("exception", getMessage(ve)); modelAndView.getModel().put("url", req.getRequestURL().toString()); return modelAndView; }  @Override ModelAndView handleException(Exception ex, HttpServletRequest req, HttpServletResponse res);  }### Answer:
@Test public void testHandleValueListException() throws Exception { HttpResponse response = executeGet("/test/valuelistExp"); Assert.assertEquals("ValueListException异常捕获失败！", 500, response.getStatusLine().getStatusCode()); String resStr = EntityUtils.toString(response.getEntity(), defaultEncode); Assert.assertTrue("ValueListException异常捕获失败！", resStr.contains("测试ValueListException异常")); }