private void failIfRequired() {
    if (exceptionToThrow != null) {
      throw exceptionToThrow;
    }
  }
Throws a {@link RuntimeException} if the {@link MockReplicationManager} is required to.
ambry-replication/src/test/java/com/github/ambry/replication/MockReplicationManager.java