@Test
public void testUploadFileWithNoSha1InContentSource() throws B2Exception {

    final B2UploadFileRequest request = B2UploadFileRequest
            .builder(bucketId(1), fileName(1), B2ContentTypes.B2_AUTO, contentSourceWithoutOptionalData)
            .setCustomField("color", "blue")
            .setCustomField("number", "six")
            .build();
    final B2UploadUrlResponse uploadUrl = uploadUrlResponse(bucketId(1), 1);
    webifier.uploadFile(uploadUrl, request);
    webApiClient.check("postJsonReturnJson.\n" +
            "url:\n" +
            "    uploadUrl1\n" +
            "headers:\n" +
            "    Authorization: downloadToken1\n" +
            "    Content-Type: b2/x-auto\n" +
            "    Expect: 100-continue\n" +
            "    User-Agent: SecretAgentMan/3.19.28\n" +
            "    X-Bz-Content-Sha1: hex_digits_at_end\n" +
            "    X-Bz-File-Name: files/%E8%87%AA%E7%94%B1/0001\n" +
            "    X-Bz-Info-color: blue\n" +
            "    X-Bz-Info-number: six\n" +
            "    X-Bz-Test-Mode: force_cap_exceeded\n" +
            "inputStream:\n" +
            "    Hello, World!0a0a9f2a6772942557ab5355d76af442f8f65e01\n" +
            "contentLength:\n" +
            "    53\n" +
            "responseClass:\n" +
            "    B2FileVersion\n"
    );
    checkRequestCategory(UPLOADING, w -> w.uploadFile(uploadUrl, request));
}