@Test
void shouldResolvePromiseOnFailure()
{

    Promise<Boolean> promise = newPromise();
    PingResponseHandler handler = newHandler( promise );
    handler.onFailure( new RuntimeException() );
    assertTrue( promise.isSuccess() );
    assertFalse( promise.getNow() );
}