### Question:
FacesHandlerInterceptor extends HandlerInterceptorAdapter implements ServletContextAware { public void setServletContext(ServletContext servletContext) { this.servletContext = servletContext; this.lifecycleAccessor.setServletContext(servletContext); }  void setServletContext(ServletContext servletContext); @Override boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler); @Override void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex); void setLifecycleId(String lifecycleId);  }### Answer:
@Test public void shouldDelegeSetServletContextToLifecycleAccess() throws Exception { this.interceptor.setServletContext(this.servletContext); verify(this.lifecycleAccessor).setServletContext(this.servletContext); }