### Question:
BufferedJestHttpClient extends JestHttpClient { @Override public <T extends JestResult> void executeAsync(Action<T> clientRequest, JestResultHandler<? super T> resultHandler) { HttpUriRequest request; try { request = prepareRequest((BufferedBulk)clientRequest); } catch (IOException e) { resultHandler.failed(e); return; } getAsyncClient().execute(request, responseHandler(clientRequest, resultHandler, request)); }  @Override void executeAsync(Action<T> clientRequest, JestResultHandler<? super T> resultHandler);  }### Answer:
@Test public void executeAsyncDelegatesToConfiguredAsyncClient() { BufferedJestHttpClient client = spy(createDefaultTestHttpClient()); CloseableHttpAsyncClient asyncClient = mockAsyncClient(client); Bulk bulk = createDefaultTestBufferedBulk(); client.executeAsync(bulk, createMockTestResultHandler()); verify(client).getAsyncClient(); verify(asyncClient).execute(any(HttpUriRequest.class), any()); }