@Test
    void testResponseWithNoContent() throws Exception {
        configureServer(bootstrap -> bootstrap
                .register("*", (request, response, context) -> response.setCode(HttpStatus.SC_NO_CONTENT)));

        final HttpHost target = startServer();

        final TestClient client = client();

        final HttpGet request = new HttpGet("/some-resource");
        client.execute(target, request, response -> {
            Assertions.assertEquals(HttpStatus.SC_NO_CONTENT, response.getCode());
            Assertions.assertNull(response.getEntity());
            return null;
        });
    }
Test for when we don't get an entity back; e.g. for a 204 or 304 response; nothing blows
up with the new behaviour.

@throws Exception
            if there was a problem
httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestContentCodings.java