public void testCliqueSuperSet() {
Graph<BayesVariable> graph = new BayesNetwork();
JunctionTreeBuilder jtBuilder = new JunctionTreeBuilder( graph );
List<OpenBitSet> cliques = new ArrayList<OpenBitSet>();
OpenBitSet OpenBitSet1 = bitSet("00011110");
jtBuilder.updateCliques(cliques, OpenBitSet1);
assertEquals( 1, cliques.size() );
// ignore subset
OpenBitSet OpenBitSet2 = bitSet("00000110");
jtBuilder.updateCliques(cliques, OpenBitSet2);
assertEquals( 1, cliques.size() );
assertEquals( OpenBitSet1, cliques.get(0) );
// add overlapping, as not a pure subset
OpenBitSet OpenBitSet3 = bitSet("01000110");
jtBuilder.updateCliques(cliques, OpenBitSet3);
assertEquals( 2, cliques.size() );
assertEquals( OpenBitSet1, cliques.get(0) );
assertEquals( OpenBitSet3, cliques.get(1) );
}