@Test
public void test_gotRetryableImmediately() {

    final B2Exception e = B2UnauthorizedException.create("test", 401, null, "msg");
    // verify that we stop after some number of attempts.
    int iAttempt = 1;
    assertTrue(policy.gotRetryableImmediately(OP, iAttempt, 0, e));  iAttempt++;
    assertTrue(policy.gotRetryableImmediately(OP, iAttempt, 0, e));  iAttempt++;
    assertTrue(policy.gotRetryableImmediately(OP, iAttempt, 0, e));  iAttempt++;
    assertTrue(policy.gotRetryableImmediately(OP, iAttempt, 0, e));  iAttempt++;
    assertTrue(policy.gotRetryableImmediately(OP, iAttempt, 0, e));  iAttempt++;
    assertTrue(policy.gotRetryableImmediately(OP, iAttempt, 0, e));  iAttempt++;
    assertTrue(policy.gotRetryableImmediately(OP, iAttempt, 0, e));  iAttempt++;
    assertTrue(!policy.gotRetryableImmediately(OP, iAttempt, 0, e));
}