private UpgradeContext getMockUpgradeContext(Cluster cluster, Direction direction, UpgradeType type, boolean replay){
    return getMockUpgradeContext(cluster, direction, type, repositoryVersion2210,
        RepositoryType.STANDARD, cluster.getServices().keySet(), m_masterHostResolver, replay);
  }
Builds a mock upgrade context using the following parameters:
<ul>
<li>{@link #repositoryVersion2110}
<li>{@link RepositoryType#STANDARD}
<li>All cluster services
<li>The mock master host resolve, {@link #m_masterHostResolver}
</ul>

@param cluster
         the cluster for the upgrade
@param direction
         the upgrade direction
@param type
         the type of upgrade
@param replay
         {@code true} to replay the mock object before returning it,
         {@code false} otherwise.
@return a mock {@link UpgradeContext}
ambari-server/src/test/java/org/apache/ambari/server/stack/upgrade/orchestrate/UpgradeHelperTest.java