@Test
public void testGetDownloadAuthorization() throws B2Exception {

    final B2GetDownloadAuthorizationRequest request = B2GetDownloadAuthorizationRequest
            .builder(bucketId(1), fileName(1), 123)
            .setB2ContentDisposition("attachment; filename=\"example file name.txt\"")
            .build();
    webifier.getDownloadAuthorization(ACCOUNT_AUTH, request);
    webApiClient.check("postJsonReturnJson.\n" +
            "url:\n" +
            "    apiUrl1/b2api/v2/b2_get_download_authorization\n" +
            "headers:\n" +
            "    Authorization: accountToken1\n" +
            "    User-Agent: SecretAgentMan/3.19.28\n" +
            "    X-Bz-Test-Mode: force_cap_exceeded\n" +
            "request:\n" +
            "    {\n" +
            "      \"b2CacheControl\": null,\n" +
            "      \"b2ContentDisposition\": \"attachment; filename=\\\"example file name.txt\\\"\",\n" +
            "      \"b2ContentEncoding\": null,\n" +
            "      \"b2ContentLanguage\": null,\n" +
            "      \"b2ContentType\": null,\n" +
            "      \"b2Expires\": null,\n" +
            "      \"bucketId\": \"bucket1\",\n" +
            "      \"fileNamePrefix\": \"files/\u81ea\u7531/0001\",\n" +
            "      \"validDurationInSeconds\": 123\n" +
            "    }\n" +
            "responseClass:\n" +
            "    B2DownloadAuthorization\n"
    );
    checkRequestCategory(OTHER, w -> w.getDownloadAuthorization(ACCOUNT_AUTH, request));
}