@Override
protected void assertHandlerExceptionThrown(ResponseHandler responseHandler, RuntimeException handlerException)
throws Exception
{
HttpResponseFuture future = balancingHttpClient.executeAsync(request, responseHandler);
try {
future.get();
fail("Exception not thrown");
}
catch (ExecutionException e) {
assertSame(e.getCause(), handlerException, "Exception thrown by BalancingAsyncHttpClient");
}