@Test
public void calculatePartSize_objectTooLarge_shouldThrowException() {

    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("exceeds max supported by ObjectStorage");
    UploadConfiguration configuration = UploadConfiguration.builder().build();
    MultipartUtils.calculatePartSize(configuration, TOO_LARGE_FOR_MULTIPART);
}