@Override
  public boolean controlReplicationForPartitions(Collection<PartitionId> ids, List<String> origins, boolean enable) {
    failIfRequired();
    if (controlReplicationReturnVal == null) {
      throw new IllegalStateException("Return val not set. Don't know what to return");
    }
    idsVal = ids;
    originsVal = origins;
    enableVal = enable;
    return controlReplicationReturnVal;
  }
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