@Test
public void testListBuckets() throws B2Exception {

    final B2ListBucketsRequest expectedRequest = B2ListBucketsRequest
            .builder(ACCOUNT_ID)
            .build();
    final B2ListBucketsResponse response = new B2ListBucketsResponse(
            listOf(bucket(1))
    );
    when(webifier.listBuckets(ACCOUNT_AUTH, expectedRequest)).thenReturn(response);
    assertEquals(response, client.listBuckets());
    assertEquals(response.getBuckets(), client.buckets());
    // for coverage
    //noinspection ResultOfMethodCallIgnored
    expectedRequest.hashCode();
    //noinspection ResultOfMethodCallIgnored
    response.hashCode();
    assertEquals(response, new B2ListBucketsResponse(listOf(bucket(1))));
}