@Override
  public long getRemoteReplicaLagFromLocalInBytes(PartitionId partitionId, String hostName, String replicaPath) {
    failIfRequired();
    long lag;
    String key = getPartitionLagKey(partitionId, hostName, replicaPath);
    if (lagOverrides == null || !lagOverrides.containsKey(key)) {
      lag = super.getRemoteReplicaLagFromLocalInBytes(partitionId, hostName, replicaPath);
    } else {
      lag = lagOverrides.get(key);
    }
    return lag;
  }
Static construction helper
@param verifiableProperties the {@link VerifiableProperties} to use for config.
@param storageManager the {@link StorageManager} to use.
@param clusterMap the {@link ClusterMap} to use.
@param dataNodeId the {@link DataNodeId} to use.
@param storeKeyConverterFactory the {@link StoreKeyConverterFactory} to use.
@return an instance of {@link MockReplicationManager}
@throws ReplicationException
ambry-replication/src/test/java/com/github/ambry/replication/MockReplicationManager.java