private Set<Integer> generateSetOfIntegers(int start, int end) {
    return IntStream.range(start, end).mapToObj(i -> i).collect(Collectors.toSet());
  }
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