@Test
public void testDoubling() {

    //noinspection ThrowableNotThrown
    final B2Exception e = new B2InternalErrorException("eek!");
    int iAttempt = 1;
    assertEquals((Integer)  1, policy.gotRetryableAfterDelay(OP, iAttempt, 0, e));  iAttempt++;
    assertEquals((Integer)  2, policy.gotRetryableAfterDelay(OP, iAttempt, 0, e));  iAttempt++;
    assertEquals((Integer)  4, policy.gotRetryableAfterDelay(OP, iAttempt, 0, e));  iAttempt++;
    assertEquals((Integer)  8, policy.gotRetryableAfterDelay(OP, iAttempt, 0, e));  iAttempt++;
    assertEquals((Integer) 16, policy.gotRetryableAfterDelay(OP, iAttempt, 0, e));  iAttempt++;
    assertEquals((Integer) 32, policy.gotRetryableAfterDelay(OP, iAttempt, 0, e));  iAttempt++;
    assertEquals((Integer) 64, policy.gotRetryableAfterDelay(OP, iAttempt, 0, e));  iAttempt++;
    assertNull(policy.gotRetryableAfterDelay(OP, iAttempt, 0, e));
}