InvocationCounterManager { public void resetInvocationCounter(final DlmsDevice device) { device.setInvocationCounter(null); this.deviceRepository.save(device); } @Autowired  InvocationCounterManager(final DlmsConnectionFactory connectionFactory, final DlmsHelper dlmsHelper,
            final DlmsDeviceRepository deviceRepository); void initializeInvocationCounter(final DlmsDevice device); void resetInvocationCounter(final DlmsDevice device);  }
@Test void resetsInvocationCounter() { final DlmsDevice device = new DlmsDeviceBuilder().withInvocationCounter(123L).build(); this.manager.resetInvocationCounter(device); assertThat(device.isInvocationCounterInitialized()).isFalse(); verify(this.deviceRepository).save(device); }