private void createConfigs(Cluster cluster) {
    Map<String, String> properties = new HashMap<>();
    Map<String, Map<String, String>> propertiesAttributes = new HashMap<>();
    properties.put("a", "a1");
    properties.put("b", "b1");

    configFactory.createNew(cluster, "zookeeper-env", "version-" + System.currentTimeMillis(),
        properties, propertiesAttributes);

    properties.put("zookeeper_a", "value_1");
    properties.put("zookeeper_b", "value_2");

    configFactory.createNew(cluster, "hdfs-site", "version-" + System.currentTimeMillis(),
        properties, propertiesAttributes);

    properties.put("hdfs_a", "value_3");
    properties.put("hdfs_b", "value_4");

    configFactory.createNew(cluster, "core-site", "version-" + System.currentTimeMillis(),
        properties, propertiesAttributes);

    configFactory.createNew(cluster, "foo-site", "version-" + System.currentTimeMillis(),
        properties, propertiesAttributes);
  }
Tests the case where a revert happens on a patch upgrade and a new service
has been added which causes the repository to go OUT_OF_SYNC.

@throws Exception
ambari-server/src/test/java/org/apache/ambari/server/serveraction/upgrades/UpgradeActionTest.java