@Override
          public Object answer() {
            serviceNames.put(serviceDisplayNameArg1.getValue(), serviceDisplayNameArg2.getValue());
            return null;
          }
Builds a mock upgrade context using only the supplied method arguments.

@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
@param resolver
         the master hsot resolver to use when determining how to
         orchestrate hosts.
@param replay
         {@code true} to replay the mock object before returning it,
         {@code false} otherwise.
@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