@Override
    public void merge(Accumulator<Integer, Integer> other) {
        this.min = Math.min(this.min, other.getLocalValue());
    }
@Test
    void testMerge() {
        IntMinimum min1 = new IntMinimum();
        min1.add(1234);

        IntMinimum min2 = new IntMinimum();
        min2.add(5678);

        min2.merge(min1);
        assertThat(min2.getLocalValue().intValue()).isEqualTo(1234);

        min1.merge(min2);
        assertThat(min1.getLocalValue().intValue()).isEqualTo(1234);
    }