@Test
public void testAuthorizeAccount() throws B2Exception {

    final B2AuthorizeAccountRequest request = B2AuthorizeAccountRequest
            .builder(ACCOUNT_ID, APPLICATION_KEY)
            .build();
    webifier.authorizeAccount(request);
    webApiClient.check("postJsonReturnJson.\n" +
                    "url:\n" +
                    "    https://api.testb2.com/b2api/v2/b2_authorize_account\n" +
                    "headers:\n" +
                    "    Authorization: Basic MTphcHBsaWNhdGlvbktleQ==\n" +
                    "    User-Agent: SecretAgentMan/3.19.28\n" +
                    "    X-Bz-Test-Mode: force_cap_exceeded\n" +
                    "request:\n" +
                    "    {}\n" +
                    "responseClass:\n" +
                    "    B2AccountAuthorization\n"
    );
    checkRequestCategory(ACCOUNT_AUTHORIZATION, w -> w.authorizeAccount(request));
}