@Test
public void testNoMatchingCredentials() throws Exception {

    HttpRequest request = new BasicHttpRequest("GET", "/");
    this.credProvider.clear();
    HttpContext context = new BasicHttpContext();
    context.setAttribute(ClientContext.CREDS_PROVIDER, this.credProvider);
    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);
    HttpRequestInterceptor interceptor = new RequestAuthCache();
    interceptor.process(request, context);
    Assert.assertNull(this.targetState.getAuthScheme());
    Assert.assertNull(this.targetState.getCredentials());
    Assert.assertNull(this.proxyState.getAuthScheme());
    Assert.assertNull(this.proxyState.getCredentials());
}