private void testAllPartitions() {
    Set<String> partitionsInClusterManager = new HashSet<>();
    for (PartitionId partition : clusterManager.getAllPartitionIds(null)) {
      String partitionStr = partition.toPathString();
      partitionsInClusterManager.add(partitionStr);
    }
    Set<String> allPartitions = helixCluster.getAllPartitions();
    assertEquals(allPartitions, partitionsInClusterManager);
  }
Tests that all partitions returned by the {@link HelixClusterManager} is equivalent to all
partitions in the cluster.
ambry-clustermap/src/test/java/com/github/ambry/clustermap/HelixClusterManagerTest.java