@Override
    public void resetLocal() {
        this.max = Double.NEGATIVE_INFINITY;
    }
@Test
    void testResetLocal() {
        DoubleMaximum max = new DoubleMaximum();
        double value = 13.57902468;

        max.add(value);
        assertThat(max.getLocalValue()).isCloseTo(value, within(0.0));

        max.resetLocal();
        assertThat(max.getLocalValue()).isCloseTo(Double.NEGATIVE_INFINITY, within(0.0));
    }