@Test
public void testThrowIfLargeFileVersionDoesntSeemToMatchRequest_mismatchingContentType() 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.TEXT_PLAIN,  // this is the mismatch!
            null,
            null,
            B2Collections.mapOf(),
            "action",
            1234
    );
    thrown.expect(B2LocalException.class);
    thrown.expectMessage("contentSource has contentType 'application/octet', but largeFileVersion has 'text/plain'");
    B2LargeFileUploader.throwIfLargeFileVersionDoesntSeemToMatchRequest(largeFileVersion, contentSource.getContentLength(), request);
}