ContentEncodingHttpClient client = new ContentEncodingHttpClient();
try {
message = "Hi";
HttpGet get = new HttpGet(DefaultServer.getDefaultServerURL() + "/path");
get.setHeader(Headers.ACCEPT_ENCODING_STRING, "identity;q=1, *;q=0");
HttpResponse result = client.execute(get);
Assert.assertEquals(StatusCodes.OK, result.getStatusLine().getStatusCode());
Header[] header = result.getHeaders(Headers.CONTENT_ENCODING_STRING);
Assert.assertEquals(1, header.length);
Assert.assertEquals("identity", header[0].getValue());
final String body = HttpClientUtils.readResponse(result);