assertEquals("gzip", r.getHeaderString(CONTENT_ENCODING));
}
@Test
public void testContentEncodingViaFeature() {
Client client = ClientBuilder.newClient(new ClientConfig()
.connectorProvider(new TestConnector())
.register(new EncodingFeature("gzip", GZipEncoder.class, DeflateEncoder.class)));
Invocation.Builder invBuilder = client.target(UriBuilder.fromUri("/").build()).request();
Response r = invBuilder.post(Entity.entity(new String("Hello world"), MediaType.TEXT_PLAIN_TYPE));
assertEquals("deflate,gzip,x-gzip", r.getHeaderString(ACCEPT_ENCODING));