private void runObfuscationTest(String testName, Collection<String> hdrs, boolean defaultHeaders) throws Exception {
ClientHttpRequestCollectionOperationAspect aspectInstance = getAspect();
ClientHttpRequestOperationCollector collector = (ClientHttpRequestOperationCollector) aspectInstance.getCollector();
HttpObfuscator obfuscator = collector.getHttpObfuscator();
if (!defaultHeaders) {
obfuscator.incrementalUpdate(HttpObfuscator.OBFUSCATED_HEADERS_SETTING, StringUtil.implode(hdrs, ","));
}
HttpHeaders reqHdrs = createIdentityHttpHeaders(HttpObfuscator.DEFAULT_OBFUSCATED_HEADERS_LIST);
assertNotNull("Failed to remove response header value", reqHdrs.remove("WWW-Authenticate"));
if (!defaultHeaders) {