@Override
    public void accept(MeterEntity entity, Long value) {
        setEntityId(entity.id());
        setServiceId(entity.serviceId());

        if (this.value > value) {
            setValue(value);
        }
    }
@Test
    public void testAccept() {
        function.accept(MeterEntity.newService("service-test", Layer.GENERAL), SMALL_VALUE);
        assertThat(function.getValue()).isEqualTo(SMALL_VALUE);

        function.accept(MeterEntity.newService("service-test", Layer.GENERAL), LARGE_VALUE);
        assertThat(function.getValue()).isEqualTo(SMALL_VALUE);
    }