private List<AmbryReplica> generateReplicaIdListWithSealedStatus(int numSealedReplicas,
      int numPartiallySealedReplicas, int numUnSealedReplicas, AmbryPartition ambryPartition) throws Exception {
    List<AmbryReplica> replicaIds = new ArrayList<>();
    while (numSealedReplicas > 0) {
      replicaIds.add(new TestAmbryReplica(ReplicaSealStatus.SEALED, ambryPartition));
      numSealedReplicas--;
    }
    while (numPartiallySealedReplicas > 0) {
      replicaIds.add(new TestAmbryReplica(ReplicaSealStatus.PARTIALLY_SEALED, ambryPartition));
      numPartiallySealedReplicas--;
    }
    while (numUnSealedReplicas > 0) {
      replicaIds.add(new TestAmbryReplica(ReplicaSealStatus.NOT_SEALED, ambryPartition));
      numUnSealedReplicas--;
    }
    return replicaIds;
  }
Generate a {@link List} of {@link AmbryReplica}s with the specified count of replica states.

@param numSealedReplicas          number of sealed replicas in the list.
@param numPartiallySealedReplicas number of partially sealed replicas in the list.
@param numUnSealedReplicas        number of unsealed replicas in the list.
@param ambryPartition             {@link AmbryPartition} object.
@return List of {@link AmbryReplica} objects.
@throws Exception in case of any error.
ambry-clustermap/src/test/java/com/github/ambry/clustermap/AmbryPartitionTest.java