public static JSONObject getJsonDisk(String mountPath, HardwareState hardwareState, long capacityInBytes)
      throws JSONException {
    JSONObject jsonObject = new JSONObject();
    jsonObject.put("mountPath", mountPath);
    jsonObject.put("hardwareState", hardwareState.name());
    jsonObject.put("capacityInBytes", capacityInBytes);
    return jsonObject;
  }
Resource state associated with datanode, disk and replica.
ambry-clustermap/src/test/java/com/github/ambry/clustermap/TestUtils.java