@Test
  public void testHostgroupUpdater() throws Exception {
    Set<String> components = ImmutableSet.of("NAMENODE", "SECONDARY_NAMENODE", "RESOURCEMANAGER");
    Configuration hostGroupConfig = new Configuration(emptyMap(), emptyMap());
    TestHostGroup group1 = new TestHostGroup("master1", components, ImmutableList.of("master1_host"), hostGroupConfig);
    TestHostGroup group2 = new TestHostGroup("master2", components, ImmutableList.of("master2_host"), hostGroupConfig);
    TestHostGroup group3 =
      new TestHostGroup("master3", components, ImmutableList.of("master3_host1", "master3_host2"), hostGroupConfig);
    Configuration clusterConfig = new Configuration(new HashMap<>(), new HashMap<>());
    ClusterTopology topology = createClusterTopology(bp, clusterConfig, ImmutableList.of(group1, group2, group3));

    BlueprintConfigurationProcessor.HostGroupUpdater updater = BlueprintConfigurationProcessor.HostGroupUpdater.INSTANCE;

    assertEquals(
      "master1_host:8080",
      updater.updateForClusterCreate(
        "mycomponent.url",
        "%HOSTGROUP::master1%:8080",
        clusterConfig.getProperties(),
        topology));

    assertEquals(
      "master1_host:8080,master2_host:8080",
      updater.updateForClusterCreate(
        "mycomponent.urls",
        "%HOSTGROUP::master1%:8080,%HOSTGROUP::master2%:8080",
        clusterConfig.getProperties(),
        topology));
  }
There is no support currently for deploying a fully Kerberized
cluster with Blueprints.  This test verifies the current treatment
of Kerberos-related properties in a Blueprint export.

@throws Exception
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessorTest.java