@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    MockDiskId that = (MockDiskId) o;

    if (!mountPath.equals(that.mountPath)) {
      return false;
    }
    return dataNode.equals(that.dataNode);
  }
Forcibly set disk state {@link HardwareState} and specify whether ClusterMap is allowed to change disk state.
@param state the hardware state of disk
@param allowChangesThroughClusterMap whether the ClusterMap is allowed to change disk state
ambry-test-utils/src/main/java/com/github/ambry/clustermap/MockDiskId.java