@Test
void nextDelayCalculatedAccordingToJitterRx()
{

    String result = "The Result";
    int retries = 24;
    double jitterFactor = 0.2;
    int initialDelay = 1;
    int multiplier = 2;
    ExponentialBackoffRetryLogic retryLogic = newRetryLogic( MAX_VALUE, initialDelay, multiplier, jitterFactor,
            mock( Clock.class ) );
    Mono<Object> single = Flux.from( retryRx( retryLogic, retries, result ) ).single();
    assertEquals( result, await( single ) );
    List<Long> scheduleDelays = eventExecutor.scheduleDelays();
    List<Long> delaysWithoutJitter = delaysWithoutJitter( initialDelay, multiplier, retries );
    assertDelaysApproximatelyEqual( delaysWithoutJitter, scheduleDelays, jitterFactor );
}