@Test
public void testCallbackErrorHandling() {

    CompletableFuture<Object> future = new CompletableFuture<>();
    IOException exception = new IOException("Request failed miserably");
    Callback callback = httpClient.createCallback(createProcessorMock(), future);
    callback.onFailure(createCallMock(), exception);
    expectFailure(future, exception);
}