@Test
  public void testHostgroupUpdater_getRequiredHostgroups() 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_host"), 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(
      ImmutableSet.of("master1"),
      ImmutableSet.copyOf(
        updater.getRequiredHostGroups(
          "mycomponent.url",
          "%HOSTGROUP::master1%:8080",
          clusterConfig.getProperties(),
          topology)));

    assertEquals(
      ImmutableSet.of("master1", "master2"),
      ImmutableSet.copyOf(
        updater.getRequiredHostGroups(
          "mycomponent.urls",
          "%HOSTGROUP::master1%:8080,%HOSTGROUP::master2%:8080",
          clusterConfig.getProperties(),
          topology)));

    assertEquals(
      ImmutableSet.of("master3"),
      ImmutableSet.copyOf(
        updater.getRequiredHostGroups(
          "mycomponent.urls",
          "%HOSTGROUP::master3%:8080",
          clusterConfig.getProperties(),
          topology)));

    assertEquals(emptyList(),
      updater.getRequiredHostGroups("mycomponent.urls", null, 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