AmrProfileStatusCodeHelper { public Set<AmrProfileStatusCodeFlagDto> toAmrProfileStatusCodeFlags(final Number registerValue) { return BYTE_REGISTER_CONVERTER.toTypes(registerValue.longValue()); }  Integer toBitPosition(final AmrProfileStatusCodeFlagDto amrProfileStatus); Set<AmrProfileStatusCodeFlagDto> toAmrProfileStatusCodeFlags(final Number registerValue); Short toValue(final Set<AmrProfileStatusCodeFlagDto> amrProfileStatusCodeFlags);  }
@Test public void testConvertToAmrProfileStatusCodeFlags() { final short registerValue = Short.parseShort("00100100", 2); final Set<AmrProfileStatusCodeFlagDto> amrStatusCodeFlags = this.helperService .toAmrProfileStatusCodeFlags(registerValue); assertThat(amrStatusCodeFlags.contains(AmrProfileStatusCodeFlagDto.DATA_NOT_VALID)).isTrue(); assertThat(amrStatusCodeFlags.contains(AmrProfileStatusCodeFlagDto.CLOCK_ADJUSTED)).isTrue(); }