assertTrue(rebalancePlan.getPrimariesMoved() > 0);
assertTrue(rebalancePlan.getPartitionStoresMoved() > 0);
assertTrue(rebalancePlan.getPartitionStoresMovedXZone() > 0);
// zone id 2 is the new zone.
MoveMap zoneMoves = rebalancePlan.getZoneMoveMap();
assertTrue(zoneMoves.get(0, 0) > 0);
assertTrue(zoneMoves.get(0, 1) == 0);
assertTrue(zoneMoves.get(0, 2) > 0);
assertTrue(zoneMoves.get(1, 0) == 0);
assertTrue(zoneMoves.get(1, 1) > 0);
assertTrue(zoneMoves.get(1, 2) > 0);
assertTrue(zoneMoves.get(2, 0) == 0);
assertTrue(zoneMoves.get(2, 1) == 0);
assertTrue(zoneMoves.get(2, 2) == 0);
// This tests interimCluster to finalCluster
rebalancePlan = ClusterTestUtils.makePlan(zzeZoneExpansion,
zzzStores,
zzzZoneExpansion,
zzzStores);
assertEquals(rebalancePlan.getPlan().size(), 1);
assertTrue(rebalancePlan.getPrimariesMoved() > 0);
assertTrue(rebalancePlan.getPartitionStoresMoved() > 0);
assertTrue(rebalancePlan.getPartitionStoresMovedXZone() > 0);
// zone id 2 is the new zone.
zoneMoves = rebalancePlan.getZoneMoveMap();
assertTrue(zoneMoves.get(0, 0) > 0);
assertTrue(zoneMoves.get(0, 1) == 0);
assertTrue(zoneMoves.get(0, 2) > 0);
assertTrue(zoneMoves.get(1, 0) == 0);
assertTrue(zoneMoves.get(1, 1) > 0);
assertTrue(zoneMoves.get(1, 2) > 0);
assertTrue(zoneMoves.get(2, 0) == 0);
assertTrue(zoneMoves.get(2, 1) == 0);
assertTrue(zoneMoves.get(2, 2) == 0);
}