@Test
public void testCreateBucket_convenience() throws B2Exception {

    final B2Bucket bucket = new B2Bucket(
            "accountId",
            bucketId(1),
            BUCKET_NAME,
            BUCKET_TYPE,
            null,
            null,
            null,
            Collections.emptySet(),
            1);
    when(webifier.createBucket(anyObject(), anyObject())).thenReturn(bucket);
    final B2Bucket response = client.createBucket(BUCKET_NAME, BUCKET_TYPE);
    assertEquals(bucket, response);
    B2CreateBucketRequestReal expectedRequest = new B2CreateBucketRequestReal(
            ACCOUNT_ID,
            new B2CreateBucketRequest(
                    BUCKET_NAME,
                    BUCKET_TYPE,
                    null,
                    null,
                    null
            )
    );
    verify(webifier, times(1)).createBucket(eq(ACCOUNT_AUTH), eq(expectedRequest));
    retryer.assertCallCountIs(2); // auth + createBucket.
}