// Test proximity size not same
List<Zone> modifiedZones2 = Lists.newArrayList();
modifiedZones2.add(zones2.get(0));
LinkedList<Integer> newProximityList = Lists.newLinkedList(zones2.get(1).getProximityList());
newProximityList.add(100);
modifiedZones2.add(new Zone(zones2.get(1).getId(), newProximityList));
cluster1 = new Cluster("cluster1", new ArrayList<Node>(), zones2);
cluster2 = new Cluster("cluster2", new ArrayList<Node>(), modifiedZones2);
assertFalse(cluster1.equals(cluster2));
// Test proximity list different order
List<Zone> modifiedZones3 = Lists.newArrayList();
for(int zoneId = 0; zoneId < 3; zoneId++) {
LinkedList<Integer> proximityList = Lists.newLinkedList(zones3.get(zoneId)
.getProximityList());
Collections.reverse(proximityList);
modifiedZones3.add(new Zone(zones3.get(zoneId).getId(), proximityList));
}
cluster1 = new Cluster("cluster1", new ArrayList<Node>(), zones3);
cluster2 = new Cluster("cluster2", new ArrayList<Node>(), modifiedZones3);
assertFalse(cluster1.equals(cluster2));