@Test
public void testUsesAccountAuthorizationCache() throws B2Exception {

    client.createBucket(BUCKET_NAME, BUCKET_TYPE);
    client.createBucket(BUCKET_NAME, BUCKET_TYPE);
    verify(webifier, times(1)).authorizeAccount(anyObject());
    verify(webifier, times(2)).createBucket(anyObject(), anyObject());
    retryer.assertCallCountIs(4); // 2*auth + 2*createBucket.
    // for coverage
    //noinspection ResultOfMethodCallIgnored
    new B2AuthorizeAccountRequest(ACCOUNT_ID, APPLICATION_KEY).hashCode();
}