@Test
void shouldResolvePromiseOnSuccess()
{

    Promise<Boolean> promise = newPromise();
    PingResponseHandler handler = newHandler( promise );
    handler.onSuccess( emptyMap() );
    assertTrue( promise.isSuccess() );
    assertTrue( promise.getNow() );
}