@Test
  public void testMultipleHostTopologyUpdater__hostgroup__multipleHostGroups() throws Exception {

    final String typeName = "application-properties";
    final String propertyName = "atlas.rest.address";
    final String originalValue = "http://%HOSTGROUP::group1%:21000,http://%HOSTGROUP::group2%:21000";
    final String component = "ATLAS_SERVER";

    Map<String, Map<String, String>> properties = new HashMap<>();
    Map<String, String> typeProps = new HashMap<>();
    typeProps.put(propertyName, originalValue);
    properties.put(typeName, typeProps);

    Configuration clusterConfig = new Configuration(properties, emptyMap());

    Set<String> components = ImmutableSet.of(component);

    Set<String> group1Hosts = ImmutableSet.of("testhost1a", "testhost1b", "testhost1c");
    Set<String> group2Hosts = ImmutableSet.of("testhost2a", "testhost2b", "testhost2c");

    TestHostGroup group1 = new TestHostGroup("group1", components, group1Hosts);
    TestHostGroup group2 = new TestHostGroup("group2", components, group2Hosts);

    Collection<TestHostGroup> hostGroups = ImmutableSet.of(group1, group2);

    ClusterTopology topology = createClusterTopology(bp, clusterConfig, hostGroups);

    BlueprintConfigurationProcessor.MultipleHostTopologyUpdater mhtu =
      new BlueprintConfigurationProcessor.MultipleHostTopologyUpdater(component, ',', true, true, true);
    String newValue = mhtu.updateForClusterCreate(propertyName, originalValue, properties, topology);

    Set<String> expectedAddresses =
      Sets.union(group1Hosts, group2Hosts).stream().map(host -> "http://" + host + ":21000").collect(toSet());
    Set<String> replacedAddresses = ImmutableSet.copyOf(newValue.split(","));
    assertEquals(expectedAddresses, replacedAddresses);
  }
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