@Test
public void testGetAllCombinations() {

  HashSet<Integer> set = new HashSet<Integer>();
  set.add(1);
  set.add(2);
  set.add(3);
  CombinationSet combiSet = new CombinationSet(set);
  List<Combination> combis = combiSet.getAllCombinations();
  Assert.assertTrue(combis.contains(new Combination(set, combiSet)));
  set.clear();
  set.add(1);
  Assert.assertTrue(combis.contains(new Combination(set, combiSet)));
  set.add(2);
  Assert.assertTrue(combis.contains(new Combination(set, combiSet)));
  set.clear();
  set.add(2);
  Assert.assertTrue(combis.contains(new Combination(set, combiSet)));
  set.add(3);
  Assert.assertTrue(combis.contains(new Combination(set, combiSet)));
  set.clear();
  set.add(3);
  Assert.assertTrue(combis.contains(new Combination(set, combiSet)));
  set.add(1);
  Assert.assertTrue(combis.contains(new Combination(set, combiSet)));
}