GZIPOutputStream gzipOut = new GZIPOutputStream(chunkedOut);
originalContent.writeTo(gzipOut);
gzipOut.finish();
chunkedOut.finish();
byte[] content = baos.toByteArray();
ClientResponse response =
client.resource(BASE_URI + "/bigbook").accept(MediaType.TEXT_PLAIN)
.header("Transfer-Encoding", "chunked").header("Content-Encoding", "gzip")