private boolean verifySuccessfulReplicas(List<ReplicaId> replicas, int expectedLocalSuccessCount, int expectedRemoteSuccessCount) {
    int actualLocalSuccessCount = 0;
    int actualRemoteSuccessCount = 0;
    for (ReplicaId replica: replicas) {
      if (replica.getDataNodeId().getDatacenterName().equals(localDcName)) {
        actualLocalSuccessCount++;
      } else {
        actualRemoteSuccessCount++;
      }
    }
    return actualLocalSuccessCount == expectedLocalSuccessCount && actualRemoteSuccessCount == expectedRemoteSuccessCount;
  }
Verify that the expected number of local and remote replicas successfully processed the request.
@param replicas The list of replicas to verify.
@param expectedLocalSuccessCount The expected number of local replicas.
@param expectedRemoteSuccessCount The expected number of remote replicas.
@return {@code true} if the number of local and remote replicas match the expected values, {@code false} otherwise.
ambry-router/src/test/java/com/github/ambry/router/ParanoidDurabilityOperationTrackerTest.java