context.setAttribute(ExecutionContext.HTTP_TARGET_HOST, this.target);
context.setAttribute(ExecutionContext.HTTP_PROXY_HOST, this.proxy);
context.setAttribute(ClientContext.TARGET_AUTH_STATE, this.targetState);
context.setAttribute(ClientContext.PROXY_AUTH_STATE, this.proxyState);
AuthCache authCache = new BasicAuthCache();
authCache.put(this.target, this.authscheme1);
authCache.put(this.proxy, this.authscheme2);
context.setAttribute(ClientContext.AUTH_CACHE, authCache);
HttpResponseInterceptor interceptor = new ResponseAuthCache();
interceptor.process(response, context);
Assert.assertNull(authCache.get(this.target));
Assert.assertNull(authCache.get(this.proxy));
}