@Test
public void testUnauthInAccountAuthorizationIsNotRetryable() throws B2Exception {

    final Guts guts = new Guts(unauthorized(ACCOUNT_AUTHORIZATION));
    boolean caughtIt = false;
    try {
        retryer.doRetry(OP, goodAuthCache, guts, policy);
    } catch (B2UnauthorizedException e) {
        assertEquals(ACCOUNT_AUTHORIZATION, e.getRequestCategory());
        assertEquals(1, guts.getCallCount());
        verify(goodAuthCache, never()).clear();
        verify(policy, times(1)).gotUnretryable(eq(OP), eq(1), anyLong(), any(B2UnauthorizedException.class));
        verifyNoMoreInteractions(policy);
        caughtIt = true;
    }
    assertTrue(caughtIt);
}