private void resetPartitions(Collection<MockPartitionId> toReset) {
    for (MockPartitionId partitionId : toReset) {
      for (ReplicaId replicaId : partitionId.getReplicaIds()) {
        ((MockReplicaId) replicaId).markReplicaDownStatus(false);
        ((MockReplicaId) replicaId).setReplicaSealStatus(ReplicaSealStatus.NOT_SEALED);
      }
    }
  }
Resets all partitions by marking them {@link PartitionState#READ_WRITE} and marking all replicas as up.
@param toReset all the partition ids to reset.
ambry-clustermap/src/test/java/com/github/ambry/clustermap/ClusterMapUtilsTest.java