private boolean partitionIncludeDataNode(PartitionId partitionId, DataNodeId dataNodeId) {
    return partitionId.getReplicaIds().stream().anyMatch(r -> r.getDataNodeId().equals(dataNodeId));
  }
Verify that the number of resources in Helix is as expected.
@param hardwareLayout the {@link HardwareLayout} of the static clustermap.
@param expectedResourceCount the expected number of resources in Helix.
ambry-tools/src/integration-test/java/com/github/ambry/clustermap/HelixBootstrapUpgradeToolTest.java