  @Test
  public void itCompressesWithGzip() {

    httpClient = new ApacheHttpClient();

    HttpRequest request = HttpRequest.newBuilder()
            .setMethod(Method.POST)
            .setUrl(testServer.baseHttpUrl())
            .setBody(ExpectedHttpResponse.newBuilder().build())
            .setCompression(Compression.GZIP)
            .build();
    HttpResponse response = httpClient.execute(request);

    assertThat(response).hasStatusCode(200).hasBody("").hasRetries(0).wasGzipCompressed();
  }