@Test
public void asEnumSetShouldReturnCorrectEnumSetForAllFlagsSet() {

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