@Test(dataProvider = "data")
public void test(String compressionConfig, String[] operations, boolean headerShouldBePresent)
throws URISyntaxException
{
RestRequest restRequest = new RestRequestBuilder(new URI(URI)).build();
ClientCompressionFilter clientCompressionFilter = new ClientCompressionFilter(EncodingType.IDENTITY.getHttpName(),
ACCEPT_COMPRESSIONS,
Arrays.asList(compressionConfig.split(",")));
for (String operation: operations)
{
RequestContext context = new RequestContext();
context.putLocalAttr(R2Constants.OPERATION, operation);
clientCompressionFilter.onRestRequest(restRequest,
context,
Collections.<String, String>emptyMap(),
new HeaderCaptureFilter(headerShouldBePresent));
}
}