@Test
public void testFromList() {

  Boolean[] array = new Boolean[] { true, false, true, false, false, false, true };
  List<Boolean> list = Arrays.asList(array);
  BitSet bitSet = BitSetUtils.fromList(list);
  for (int i = 0; i < array.length; i++) {
    Assert.assertEquals(array[i], bitSet.get(i));
  }
  List<Boolean> emptyList = new LinkedList<>();
  BitSet emptyBitSet = BitSetUtils.fromList(emptyList);
  Assert.assertTrue(emptyBitSet.isEmpty());
}