@Test
public void testAuthenticationUserinfoInRequestSuccess() throws Exception {
HttpAsyncRequestHandlerRegistry registry = new HttpAsyncRequestHandlerRegistry();
registry.register("*", new BasicAsyncRequestHandler(new AuthHandler()));
HttpHost target = start(registry, null);
HttpGet httpget = new HttpGet("http://test:test@" + target.toHostString() + "/");
Future<HttpResponse> future = this.httpclient.execute(target, httpget, null);
HttpResponse response = future.get();
Assert.assertNotNull(response);
HttpEntity entity = response.getEntity();
Assert.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode());