@Test
void testGetTagPositions() {

    // for each possible short value construct a RollUpBitMask object then
    // convert it to a list of tag positions and
    // back, asserting the two objects are equal
    for (short i = 0; i <= Short.MAX_VALUE && i >= 0; i++) {
        final RollUpBitMask rollUpBitMask = RollUpBitMask.fromShort(i);
        final SortedSet<Integer> tagPositions = rollUpBitMask.getTagPositions();
        final RollUpBitMask rollUpBitMask2 = RollUpBitMask.fromTagPositions(tagPositions);
        assertThat(rollUpBitMask2).isEqualTo(rollUpBitMask);
        // System.out.println(i + " - " + rollUpBitMask.toString() + " - " +
        // rollUpBitMask.getTagPositions());
    }
}