@Test
public void testDeleteBucket() throws B2Exception {

    final B2Bucket bucket = bucket(1);
    final B2DeleteBucketRequest request = B2DeleteBucketRequest.builder(bucketId(1)).build();
    final B2DeleteBucketRequestReal realRequest = new B2DeleteBucketRequestReal(ACCOUNT_ID, bucketId(1));
    when(webifier.deleteBucket(anyObject(), eq(realRequest))).thenReturn(bucket);
    assertEquals(bucket, client.deleteBucket(request));
    verify(webifier, times(1)).deleteBucket(anyObject(), eq(realRequest));
    assertEquals(bucket, client.deleteBucket(bucketId(1)));
    verify(webifier, times(2)).deleteBucket(anyObject(), eq(realRequest));
    // for coverage
    //noinspection ResultOfMethodCallIgnored
    request.hashCode();
    //noinspection ResultOfMethodCallIgnored
    realRequest.hashCode();
    assertEquals(request, B2DeleteBucketRequest.builder(bucketId(1)).build());
}