private UpgradeContext getMockUpgradeContext(Cluster cluster, Direction direction,
      UpgradeType type, RepositoryVersionEntity repositoryVersion, RepositoryType repositoryType,
      Set<String> services) {
    return getMockUpgradeContext(cluster, direction, type, repositoryVersion,
        repositoryType, services, m_masterHostResolver, true);
  }
Builds a mock upgrade context using the following parameters:
<ul>
<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 repositoryVersion
         the repository version to use for the upgrade or downgrade.
@param repositoryType
         the type of repository for the upgrade (patch, standard, etc).
@param services
         the services participating in the upgrade. This should typically
         be all services, unless the {@link RepositoryType#PATCH} is used.
@return a mock {@link UpgradeContext} which has already been replayed and
        is ready to use.
ambari-server/src/test/java/org/apache/ambari/server/stack/upgrade/orchestrate/UpgradeHelperTest.java