### Question:
ExternalLinkInterceptor extends HandlerInterceptorAdapter { @Override public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception { super.postHandle(request, response, handler, modelAndView); if (modelAndView != null) { List<ExternalLink> links = externalLinkService.getLinks(); modelAndView.addObject(EXTERNAL_LINKS_MODEL_PARAM, links); } } ExternalLinkInterceptor(ExternalLinkService service); @Override void postHandle(HttpServletRequest request,
                           HttpServletResponse response,
                           Object handler,
                           ModelAndView modelAndView);  }### Answer:
@Test public void testPostHandle() throws Exception { ModelAndView mav = new ModelAndView("mav"); interceptor.postHandle(null, null, null, mav); assertModelAttributeAvailable(mav, ExternalLinkInterceptor.EXTERNAL_LINKS_MODEL_PARAM); }