/**
* Tests that the server side request headers have the Content-Encoding
* stripped since the filter is decoding it.
*/
public void testHttpHeaderRequest() throws IOException {
RestClient client = new RestClient(new ClientConfig().handlers(new GzipHandler()));
ClientResponse response =
client.resource(getBaseURI() + "/contentencode/httpheadercontentencoding")
.header(HttpHeaders.ACCEPT_ENCODING, "*").accept(MediaType.TEXT_PLAIN)
.contentType(MediaType.TEXT_PLAIN).post("HI");
assertEquals(200, response.getStatusCode());