@Override
    public void add(Double value) {
        this.count++;
        this.sum += value;
    }
@Test
    void testAdd() {
        AverageAccumulator average = new AverageAccumulator();
        int i1;
        for (i1 = 0; i1 < 10; i1++) {
            average.add(i1);
        }
        assertThat(average.getLocalValue()).isCloseTo(4.5, within(0.0));
        average.resetLocal();

        Integer i2;
        for (i2 = 0; i2 < 10; i2++) {
            average.add(i2);
        }
        assertThat(average.getLocalValue()).isCloseTo(4.5, within(0.0));
        average.resetLocal();

        long i3;
        for (i3 = 0; i3 < 10; i3++) {
            average.add(i3);
        }
        assertThat(average.getLocalValue()).isCloseTo(4.5, within(0.0));
        average.resetLocal();

        Long i4;
        for (i4 = 0L; i4 < 10; i4++) {
            average.add(i4);
        }
        assertThat(average.getLocalValue()).isCloseTo(4.5, within(0.0));
        average.resetLocal();

        double i5;
        for (i5 = 0; i5 < 10; i5++) {
            average.add(i5);
        }
        assertThat(average.getLocalValue()).isCloseTo(4.5, within(0.0));
        average.resetLocal();

        Double i6;
        for (i6 = 0.0; i6 < 10; i6++) {
            average.add(i6);
        }
        assertThat(average.getLocalValue()).isCloseTo(4.5, within(0.0));
        average.resetLocal();

        assertThat(average.getLocalValue()).isCloseTo(0.0, within(0.0));
    }