private void writeBootstrapOrUpgrade(long expectedResourceCount, boolean forceRemove) throws Exception {
    writeBootstrapOrUpgrade(expectedResourceCount, forceRemove, fullAutoCompatible ? 1000 : 0);
  }
Write the layout files out from the constructed in-memory hardware and partition layouts; use the bootstrap tool
to update the contents in Helix; verify that the information is consistent between the two.
@param expectedResourceCount number of resources expected in Helix for this cluster in each datacenter.
@param forceRemove whether the forceRemove option should be passed when doing the bootstrap/upgrade.
@throws IOException if a file read error is encountered.
@throws JSONException if a JSON parse error is encountered.
ambry-tools/src/integration-test/java/com/github/ambry/clustermap/HelixBootstrapUpgradeToolTest.java