/**
* Tests that a deflate inbound is ok and outbound is also ok.
*/
public void testDeflatedContentEncodedInboundRequestContentEncodedOutboundPost() {
ClientConfig config = new ClientConfig();
config.handlers(new DeflateHandler());
RestClient client = new RestClient(config);
ClientResponse response =
client.resource(getBaseURI() + "/contentencode/echo").post(getRepeatedString());
assertEquals(200, response.getStatusCode());