@Test
void shouldCompleteFutureOnFailure() throws Exception
{

    CompletableFuture<Void> future = new CompletableFuture<>();
    ResetResponseHandler handler = newHandler( future );
    assertFalse( future.isDone() );
    handler.onFailure( new RuntimeException() );
    assertTrue( future.isDone() );
    assertNull( future.get() );
}