@Test
public void testBasicAuth() throws Exception {
MockRequestHandler mockHandler = new MockRequestHandler(HttpStatus.SC_OK);
testServer.register("/", mockHandler);
HttpConfiguration configuration = new HttpConfiguration();
configuration.setUrl("http://" + getHost() + ":" + getPort() + "/");
configuration.setMethod("GET");
configuration.setBasicAuth(true);
configuration.setUsername("german");
configuration.setPassword("password");
HttpConnector connector = new HttpConnector(configuration);
connector.process(new Message());
Header header = mockHandler.getHeader("Authorization");