@Test
public void testClear() {

  BitSet bitSet = new BitSet(NUM_BITS);
  for (int i = 0; i < NUM_BITS; i++) {
    bitSet.set(i);
  }
  for (int i = 0; i < NUM_BITS; i++) {
    assertTrue(bitSet.get(i));
  }
  bitSet.clear();
  for (int i = 0; i < NUM_BITS; i++) {
    assertFalse(bitSet.get(i));
  }
}