### Question:
BitSet { public void setAll() { for (int k = 0; k < bytes.length; k++) { bytes[k] = (byte) 0xff; } } BitSet(int size); void set(int position); void setAll(); boolean get(int position); int size();  }### Answer:
@Test public void setAll() { BitSet set = new BitSet(17); set.setAll(); Assert.assertEquals(17, set.size()); for (int k = 0; k < set.size(); k++) Assert.assertTrue(set.get(k)); }