@Test
public void asEnumSetShouldReturnCorrectEnumSetForFlag8Set() {

    // Arrange
    final Byte bitmask = (byte) 128;
    final BitmaskMeasurementElement element = new BitmaskMeasurementElement(bitmask);
    final EnumSet<BitmaskFlag> expected = EnumSet.noneOf(BitmaskFlag.class);
    expected.add(BitmaskFlag.FLAG_8);
    // Act
    final Set<BitmaskFlag> actual = element.asEnumSet();
    // Assert
    assertThat(actual).isEqualTo(expected);
}