public Container addReplicationPolicyToContainer(Container container, String replicationPolicy)
      throws AccountServiceException {
    Container newContainer = new ContainerBuilder(container).setReplicationPolicy(replicationPolicy).build();
    Account account = getAccountById(container.getParentAccountId());
    Account newAccount = new AccountBuilder(account).addOrUpdateContainer(newContainer).build();
    updateAccounts(Collections.singleton(newAccount));
    return newContainer;
  }
Adds {@code replicationPolicy} to {@code container}.
@param container the {@link Container} to add the replication policy to.
@param replicationPolicy the replication policy to add to {@code container}.
@return the new container object with the appropriate replication policy if the operation suceeded. {@code null}
otherwise
ambry-test-utils/src/main/java/com/github/ambry/account/InMemAccountService.java