private void populateReplicaList(List<ReplicaSpec> specs) {
    for (ReplicaSpec spec : specs) {
      ReplicaId replicaId = new MockReplicaId(PORT, mockPartition, spec.getDataNode(), 0, spec.getState());
      mockPartition.replicaIds.add(replicaId);
      mockPartition.replicaAndState.put(replicaId, spec.getState());
    }
  }
Populate replicas for a partition.
@param specs The list of {@link ReplicaSpec} that contains the information of the replicas.
ambry-router/src/test/java/com/github/ambry/router/ParanoidDurabilityOperationTrackerTest.java