@Test
public void getDelays_overflow() {

    ExponentialBackoffDelayStrategy strategy = new ExponentialBackoffDelayStrategy(30000L);
    WaitContext context = new WaitContext(System.currentTimeMillis());
    for (int attempt = 0; attempt < 100; attempt++) {
        context.incrementAttempts();
        assertTrue(strategy.nextDelay(context) > 0);
        assertTrue(strategy.nextDelay(context) <= 30000L);
    }
}