UsernamePasswordCredentials creds =
new UsernamePasswordCredentials("testuser", "testpass");
HttpRequestHandlerChain handlerchain = new HttpRequestHandlerChain();
handlerchain.appendHandler(new AuthRequestHandler(creds));
handlerchain.appendHandler(new HttpServiceHandler(new FeedbackService()));
this.httpclient.getState().setCredentials(AuthScope.ANY,
new UsernamePasswordCredentials("testuser", "wrongstuff"));
this.httpclient.getState().setProxyCredentials(AuthScope.ANY, creds);