@Test
public void twoLevelBalancedClusters(){
goodTree = new ClusterHead();
ClusterNode c1 = new ClusterNode();
c1.addNode(nodes.get(0));
c1.addNode(nodes.get(1));
ClusterNode c2 = new ClusterNode();
c2.addNode(nodes.get(2));
ClusterNode parentOfC1And2 = new ClusterNode();
parentOfC1And2.addChild(c2);
parentOfC1And2.addChild(c1);
ClusterNode separate = new ClusterNode();
separate.addNode(nodes.get(3));
goodTree.addChild(parentOfC1And2);
ClusterNode parentOfSeparate = new ClusterNode();
parentOfSeparate.addChild(separate);
goodTree.addChild(parentOfSeparate);
groovyVersion.setTree(goodTree);
javaVersion.setTree(goodTree);