@Test
public void test_cache_control_set() throws IOException, ServletException {

    Mockito.when(servletRequest.getPathInfo()).thenReturn("/a/b/c.js");
    resourceCacheControl.doFilter(servletRequest, servletResponse, filterChain);
    Mockito.verify(servletResponse).setHeader("Cache-Control", "public, max-age=31536000");
}