@Override
  boolean addReplica(ReplicaId id) {
    return returnValOfAddReplica == null ? super.addReplica(id) : returnValOfAddReplica;
  }
An extension of {@link StatsManager} to help with tests.
ambry-server/src/test/java/com/github/ambry/server/MockStatsManager.java