SetConfigurationObjectServiceSmr5 extends SetConfigurationObjectService { @Override Optional<Integer> getBitPosition(final ConfigurationFlagTypeDto type) { return type.getBitPositionSmr5(); } SetConfigurationObjectServiceSmr5(final DlmsHelper dlmsHelper); @Override boolean handles(final Protocol protocol);  }
@Test public void getBitPosition() { for (final ConfigurationFlagTypeDto flagTypeDto : ConfigurationFlagTypeDto.values()) { flagTypeDto.getBitPositionSmr5() .ifPresent(bitPosition -> assertThat( this.instance.getBitPosition(flagTypeDto).orElseThrow(IllegalArgumentException::new)) .isEqualTo(bitPosition)); } }