AmrProfileStatusCodeHelper { public Integer toBitPosition(final AmrProfileStatusCodeFlagDto amrProfileStatus) { return BYTE_REGISTER_CONVERTER.toBitPosition(amrProfileStatus); }  Integer toBitPosition(final AmrProfileStatusCodeFlagDto amrProfileStatus); Set<AmrProfileStatusCodeFlagDto> toAmrProfileStatusCodeFlags(final Number registerValue); Short toValue(final Set<AmrProfileStatusCodeFlagDto> amrProfileStatusCodeFlags);  }
@Test public void testBitPositions() { assertThat((int) this.helperService.toBitPosition(AmrProfileStatusCodeFlagDto.CLOCK_INVALID)).isEqualTo(1); assertThat((int) this.helperService.toBitPosition(AmrProfileStatusCodeFlagDto.DAYLIGHT_SAVING)).isEqualTo(3); assertThat((int) this.helperService.toBitPosition(AmrProfileStatusCodeFlagDto.POWER_DOWN)).isEqualTo(7); }