@Test
public void testBitPositions() {

    assertThat((int) this.alarmHelperService.toBitPosition(AlarmTypeDto.CLOCK_INVALID)).isEqualTo(0);
    assertThat((int) this.alarmHelperService.toBitPosition(AlarmTypeDto.PROGRAM_MEMORY_ERROR)).isEqualTo(8);
    assertThat((int) this.alarmHelperService.toBitPosition(AlarmTypeDto.WATCHDOG_ERROR)).isEqualTo(12);
    assertThat((int) this.alarmHelperService.toBitPosition(AlarmTypeDto.COMMUNICATION_ERROR_M_BUS_CHANNEL_1))
            .isEqualTo(16);
    assertThat((int) this.alarmHelperService.toBitPosition(AlarmTypeDto.FRAUD_ATTEMPT_M_BUS_CHANNEL_1))
            .isEqualTo(20);
    assertThat((int) this.alarmHelperService.toBitPosition(AlarmTypeDto.NEW_M_BUS_DEVICE_DISCOVERED_CHANNEL_1))
            .isEqualTo(24);
}