### Question:
BitSet implements Serializable, Cloneable { public void clear(int index) { bits[index >>> 6] &= ~(1L << (index & 0x3F)); } BitSet(int numBits); private  BitSet(long[] bits); boolean get(int index); void set(int index); void set(int from, int to); void clear(int index); void clear(); int cardinality(); int nextSetBit(int index); @Override BitSet clone(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString();  }### Answer:
@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)); } }