@Test
public void calculatePartSize_inexactChunkSplit_partSizeShouldBeOneMore() {

    UploadConfiguration configuration = UploadConfiguration.builder().build();
    long objectSize =
            configuration.getLengthPerUploadPart()
                    * MultipartUtils.MiB
                    * UploadConfiguration.MAXIMUM_NUM_ALLOWED_PARTS;
    long partSize = objectSize / UploadConfiguration.MAXIMUM_NUM_ALLOWED_PARTS;
    // increasing object size by even 1 means we'd go over the max parts allowed,
    // so part size increases by 1 to compensate
    objectSize += 1;
    partSize += 1;
    assertEquals(partSize, MultipartUtils.calculatePartSize(configuration, objectSize));
}