3435363738394041424344
@Override public Response apply(Request input) { throw expectedException; } }).executeAsync(request, new CaptureExceptionResponseHandler()); try { future.get(); fail("expected exception"); }