@Test
    void testDeflateSupportForServerReturningRfc1951Stream() throws Exception {
        final String entityText = "Hello, this is some plain text coming back.";

        configureServer(bootstrap -> bootstrap
                .register("*", createDeflateEncodingRequestHandler(entityText, true)));

        final HttpHost target = startServer();

        final TestClient client = client();

        final HttpGet request = new HttpGet("/some-resource");
        client.execute(target, request, response -> {
            Assertions.assertEquals(entityText, EntityUtils.toString(response.getEntity()),
                    "The entity text is correctly transported");
            return null;
        });
    }
Test for when we are handling content from a server that has incorrectly interpreted RFC2616
to return RFC1951 streams for {@code deflate} content coding.

@throws Exception
httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestContentCodings.java