@Test(expected = BmcException.class)
public void upload_singleUpload_enforceMd5_streamTooLargeToBuffer() {

    UploadConfiguration uploadConfiguration =
            UploadConfiguration.builder().allowMultipartUploads(false).enforceMd5(true).build();
    UploadManager uploadManager = new UploadManager(objectStorage, uploadConfiguration);
    UploadRequest request =
            UploadRequest.builder(new ByteArrayInputStream(new byte[0]), Long.MAX_VALUE)
                    .build(PutObjectRequest.builder().build());
    uploadManager.upload(request);
}