public void testAuthenticationUserinfoInRedirectSuccess() throws Exception {
this.localServer.register("*", new AuthHandler());
this.localServer.register("/thatway", new RedirectHandler());
final HttpHost target = getServerHttp();
final HttpGet httpget = new HttpGet("http://" + target.toHostString() + "/thatway");
this.httpclient = HttpClients.custom().build();
final HttpResponse response = this.httpclient.execute(getServerHttp(), httpget);
final HttpEntity entity = response.getEntity();