@Test
public void getFlagsCannotFindBitPosition() throws Exception {

    // SETUP
    final ArrayList<ConfigurationFlagDto> flags = new ArrayList<>();
    flags.add(new ConfigurationFlagDto(ConfigurationFlagTypeDto.PO_ENABLE, true));
    final ConfigurationFlagsDto flagsToSet = new ConfigurationFlagsDto(flags);
    when(this.configurationToSet.getConfigurationFlags()).thenReturn(flagsToSet);
    when(this.configurationOnDevice.getConfigurationFlags()).thenReturn(this.emptyFlags());
    assertThatExceptionOfType(ProtocolAdapterException.class).isThrownBy(() -> {
        // CALL
        this.instance.getFlags(this.configurationToSet, this.configurationOnDevice);
    });
}