CacheControlHandlerInterceptor extends HandlerInterceptorAdapter implements HandlerInterceptor { protected final CacheControl getCacheControl( final HttpServletRequest request, final HttpServletResponse response, final Object handler) { if (handler == null || !(handler instanceof HandlerMethod)) { return null; } final HandlerMethod handlerMethod = (HandlerMethod) handler; CacheControl cacheControl = handlerMethod.getMethodAnnotation(CacheControl.class); if (cacheControl == null) { return handlerMethod.getBeanType().getAnnotation(CacheControl.class); } return cacheControl; } CacheControlHandlerInterceptor(); @Override final boolean preHandle(
			final HttpServletRequest request,
			final HttpServletResponse response, 
			final Object handler); final void setUseExpiresHeader(final boolean useExpiresHeader);  }
@Test public void testHandleWithDefaultPolicy() throws Exception { final HandlerMethod handler = new HandlerMethod( controller, controller.getClass().getMethod("handleWithDefaultPolicy")); assertNotNull(interceptor.getCacheControl(null, null, handler)); }