@Test
public void calculatePartSize_partSizeLessThanMinimum_shouldReturnMinimum() {

    UploadConfiguration configuration =
            UploadConfiguration.builder()
                    .lengthPerUploadPart(10 /* MiB */)
                    .minimumLengthForMultipartUpload(10 /* MiB */)
                    .build();
    long expected = configuration.getMinimumLengthPerUploadPart() * MultipartUtils.MiB;
    long contentLength = 5L * MultipartUtils.MiB;
    long actual = MultipartUtils.calculatePartSize(configuration, contentLength);
    assertEquals("PartSize should be equal to the configured minimum", expected, actual);
}