private Cluster getDummyCluster(Set<String> hostNames)
      throws Exception {

    Map<String, String> configProperties = new HashMap<String, String>() {{
      put(RecoveryConfigHelper.RECOVERY_ENABLED_KEY, "true");
      put(RecoveryConfigHelper.RECOVERY_TYPE_KEY, "AUTO_START");
      put(RecoveryConfigHelper.RECOVERY_MAX_COUNT_KEY, "4");
      put(RecoveryConfigHelper.RECOVERY_LIFETIME_MAX_COUNT_KEY, "10");
      put(RecoveryConfigHelper.RECOVERY_WINDOW_IN_MIN_KEY, "23");
      put(RecoveryConfigHelper.RECOVERY_RETRY_GAP_KEY, "2");
    }};

    Cluster cluster = heartbeatTestHelper.getDummyCluster(dummyClusterName, dummyClusterId, stackId, REPO_VERSION,
        configProperties, hostNames);

    return cluster;
  }
Test a cluster with two hosts. The first host gets the configuration during
registration. The second host gets it during it's first heartbeat.

@throws Exception
ambari-server/src/test/java/org/apache/ambari/server/configuration/RecoveryConfigHelperTest.java