BitVector implements Serializable { public void clear() { fill(data, 0L); } BitVector(int capacity); void clear(); boolean get(int i); void set(int i, boolean value);  }
@Test public void testClear() { for (int i = 0; i < CAPACITY; i++) { assertFalse(vector.get(i)); } for (int i = 0; i < CAPACITY; i++) { vector.set(i, true); } for (int i = 0; i < CAPACITY; i++) { assertTrue(vector.get(i)); } vector.clear(); for (int i = 0; i < CAPACITY; i++) { assertFalse(vector.get(i)); } }