@Override
      public void handle(Request request, HttpServletResponse response) {
        response.setStatus(HTTP_OK);
        if (!"gzip".equals(request.getHeader("Accept-Encoding")))
          return;

        write("hello not compressed");
      }
Make a GET request that should be compressed but isn't

@throws Exception
lib/src/test/java/com/github/kevinsawicki/http/HttpRequestTest.java