@Test
public void calculatePartSize_objectSizeEqualsMaxAllowed_shouldReturnCalculatedPartSizes() {

    int lengthPerPartMiB = 10;
    UploadConfiguration configuration =
            UploadConfiguration.builder()
                    .lengthPerUploadPart(lengthPerPartMiB)
                    .minimumLengthForMultipartUpload(lengthPerPartMiB)
                    .build();
    long expected =
            (long)
                    Math.ceil(
                            (double) MultipartUtils.MAX_SUPPORTED_CONTENT_LENGTH
                                    / UploadConfiguration.MAXIMUM_NUM_ALLOWED_PARTS);
    long actual =
            MultipartUtils.calculatePartSize(
                    configuration, MultipartUtils.MAX_SUPPORTED_CONTENT_LENGTH);
    assertEquals("PartSize should be equal", expected, actual);
}