private static void updateDataNodeJsonArrayWithNewDiskCapacity(JSONArray dataNodeJsonArray, JSONArray disks) {
    for (int i = 0; i < dataNodeJsonArray.length(); ++i) {
      ((JSONObject) dataNodeJsonArray.get(i)).put("disks", disks);
    }
  }
Update the given array of JSON data node objects by replacing original disks with given ones.
@param dataNodeJsonArray the datanode JSONArray to update
@param disks a new {@link JSONArray} of disks to replace original ones for each node
ambry-clustermap/src/test/java/com/github/ambry/clustermap/TestUtils.java