@Test
public void testListBuckets() throws B2Exception {

    final B2ListBucketsRequest request = B2ListBucketsRequest
            .builder(ACCOUNT_ID)
            .build();
    webifier.listBuckets(ACCOUNT_AUTH, request);
    webApiClient.check("postJsonReturnJson.\n" +
            "url:\n" +
            "    apiUrl1/b2api/v2/b2_list_buckets\n" +
            "headers:\n" +
            "    Authorization: accountToken1\n" +
            "    User-Agent: SecretAgentMan/3.19.28\n" +
            "    X-Bz-Test-Mode: force_cap_exceeded\n" +
            "request:\n" +
            "    {\n" +
            "      \"accountId\": \"1\",\n" +
            "      \"bucketId\": null,\n" +
            "      \"bucketName\": null,\n" +
            "      \"bucketTypes\": null\n" +
            "    }\n" +
            "responseClass:\n" +
            "    B2ListBucketsResponse\n"
    );
    checkRequestCategory(OTHER, w -> w.listBuckets(ACCOUNT_AUTH, request));
}