@Test(groups = { "standalone", "default_provider" })
public void basicAuthInputStreamTest() throws IOException, ExecutionException, TimeoutException, InterruptedException {
AsyncHttpClient client = getAsyncHttpClient(null);
try {
Future<Response> f = client.preparePost(getTargetUrl())//
.setBody(new ByteArrayInputStream("test".getBytes()))//
.setRealm((new Realm.RealmBuilder()).setPrincipal(USER).setPassword(ADMIN).build())//
.execute();
Response resp = f.get(30, TimeUnit.SECONDS);