int calculatePartBufferSize(HazelcastProperties hazelcastProperties, long jarSize) {
        int partBufferSize = hazelcastProperties.getInteger(JOB_UPLOAD_PART_SIZE);

        // If jar size is smaller, then use it
        if (jarSize < partBufferSize) {
            partBufferSize = (int) jarSize;
        }
        return partBufferSize;
    }
@Test
    public void calculatePartBufferSize_when_validProperty() {
        SubmitJobPartCalculator submitJobPartCalculator = new SubmitJobPartCalculator();

        Properties properties = new Properties();
        properties.setProperty(ClientProperty.JOB_UPLOAD_PART_SIZE.getName(), "1000");

        HazelcastProperties hazelcastProperties = new HazelcastProperties(properties);

        long jarSize = 2_000;
        int partSize = submitJobPartCalculator.calculatePartBufferSize(hazelcastProperties, jarSize);
        assertEquals(1_000, partSize);
    }