@Test(groups = { "standalone", "default_provider", "async" })
public void asyncContentLenghtGETTest() throws Exception {
AsyncHttpClient client = getAsyncHttpClient(null);
try {
Response response = client.prepareGet(getTargetUrl()).execute(new AsyncCompletionHandlerAdapter() {
@Override
public void onThrowable(Throwable t) {
fail("Unexpected exception", t);
}
}).get();
assertNotNull(response);
assertEquals(response.getStatusCode(), 200);
} finally {
client.close();
}
}