@Test
public void isClientCompressionSupported() {

    final HttpServletRequest request = Mockito
            .mock(HttpServletRequest.class);
    Mockito.when(request.getHeader("Accept-Encoding")).thenReturn(
            "gzip, deflate");
    Assert.assertTrue(StaticResourceServlet
            .isClientCompressionSupported(request));
}