@Test
public void getFlagType() {

    for (final ConfigurationFlagTypeDto flagTypeDto : ConfigurationFlagTypeDto.values()) {
        flagTypeDto.getBitPositionDsmr4()
                .ifPresent(bitPosition -> assertThat(
                        this.instance.getFlagType(bitPosition).orElseThrow(IllegalArgumentException::new))
                                .isEqualTo(flagTypeDto));
    }
}