### Question:
LongBitVector { public void fill(boolean bitValue) { if (bitValue) { Arrays.fill(words, 0xffffffffffffffffL); int last = (int) (size / 64); words[last] &= cutMasks[(int) (size & mod64Mask)] >>> 1; } else { Arrays.fill(words, 0); } } LongBitVector();  LongBitVector(long initialCapcity);  LongBitVector(long[] words, long size);  LongBitVector(long initialCapcity, int capacityInterval); static LongBitVector deserialize(DataInputStream dis); long getLastBitIndex(boolean bitValue); void fill(boolean bitValue); long[] getLongArray(); long[] zeroIndexes(); int[] zeroIntIndexes(); long size(); void add(boolean b); void addFast(boolean b); long getLong(long start, int bitAmount); void add(int a, int bitLength); void add(int amount, boolean bit); void add(long a, int bitLength); long numberOfOnes(); long numberOfZeros(); void checkAndEnsureCapacity(int bitAmount); boolean get(long n); void set(long n); void set(long[] n); void clear(long n); void clear(long[] n); void serialize(DataOutputStream dos); static final long MAX_ARRAY_SIZE; }### Answer:
@Test public void fillTest() { LongBitVector vector = new LongBitVector(128); vector.add(128, false); for (int i = 0; i < 128; i++) { Assert.assertTrue(!vector.get(i)); } vector.fill(true); for (int i = 0; i < 128; i++) { Assert.assertTrue(vector.get(i)); } vector.fill(false); for (int i = 0; i < 128; i++) { Assert.assertTrue(!vector.get(i)); } vector = new LongBitVector(3); vector.add(3, false); vector.fill(true); assertEquals(vector.getLongArray()[0], 7); }