@Test
public void testThrowIfLargeFileVersionDoesntSeemToMatchRequest_mismatchingSha1() throws IOException, B2Exception {

    final B2UploadFileRequest request = B2UploadFileRequest
            .builder(bucketId(1), fileName(2), B2ContentTypes.APPLICATION_OCTET, contentSource)
            .build();
    final B2FileVersion largeFileVersion = new B2FileVersion(
            fileId(1),
            fileName(2),
            contentSource.getContentLength(),
            B2ContentTypes.APPLICATION_OCTET,
            null, // sha1 of the file (always null for large files.  they use LARGE_FILE_SHA1!)
            null, // md5 of the file
            B2Collections.mapOf(B2Headers.LARGE_FILE_SHA1_INFO_NAME, makeSha1(1)),
            "action",
            1234
    );
    thrown.expect(B2LocalException.class);
    thrown.expectMessage("contentSource has sha1 'null', but largeFileVersion has '1111111111111111111111111111111111111111'");
    B2LargeFileUploader.throwIfLargeFileVersionDoesntSeemToMatchRequest(largeFileVersion, contentSource.getContentLength(), request);
}