CookieFilter extends AdviceFilter { @Override protected void postHandle(final ServletRequest request, final ServletResponse response) throws Exception { filterCookies(request, response); }    }
@Test public void ifRequestIsSecureSetSecureCookieAttributeWhenMissingAfterProcessingFilterchain() throws Exception { setup(request, response); cookieFilter.postHandle(request, response); verifyResponse(response); }