@Override
    public void accept(MeterEntity entity, Long value) {
        setEntityId(entity.id());
        setServiceId(entity.serviceId());
        setTotal(getTotal() + value);
    }
@Test
    public void testAccept() {
        long time1 = 1597113318673L;
        function.accept(MeterEntity.newService("sum_sync_time", Layer.GENERAL), time1);
        function.calculate();
        assertThat(function.getValue()).isEqualTo(time1);
        long time2 = 1597113447737L;
        function.accept(MeterEntity.newService("sum_sync_time", Layer.GENERAL), time2);
        function.calculate();
        assertThat(function.getValue()).isEqualTo(time1 + time2);
    }