@Test
public void testFromArray() {

  boolean[] array = new boolean[] { true, false, true, false, false, false, true };
  BitSet bitSet = BitSetUtils.fromArray(array);
  for (int i = 0; i < array.length; i++) {
    Assert.assertEquals(array[i], bitSet.get(i));
  }
}