### Question:
DefaultDispatcher implements Dispatcher, ApplicationListener<ContextRefreshedEvent> { public void onApplicationEvent(ContextRefreshedEvent event) { this.delegate.onRefresh(event.getApplicationContext()); } DefaultDispatcher(); View resolveViewName(String viewName, Map<String, Object> model, Locale locale, HttpServletRequest request); HandlerExecutionChain getHandler(HttpServletRequest request); ModelAndView processHandlerException(HttpServletRequest request, HttpServletResponse response,
			Object handler, Exception ex); void onApplicationEvent(ContextRefreshedEvent event); void setDetectAllHandlerMappings(boolean detectAllHandlerMappings); void setDetectAllHandlerAdapters(boolean detectAllHandlerAdapters); void setDetectAllHandlerExceptionResolvers(boolean detectAllHandlerExceptionResolvers); void setDetectAllViewResolvers(boolean detectAllViewResolvers); void setCleanupAfterInclude(boolean cleanupAfterInclude);  }### Answer:
@Test public void shouldDelegateRefresh() throws Exception { ApplicationContext context = mock(ApplicationContext.class); ContextRefreshedEvent event = new ContextRefreshedEvent(context); this.dispatcher.onApplicationEvent(event); verify(this.delegate).onRefresh(context); }