@Test
  public void testSetStackToolsAndFeatures_ClusterEnvChanged_TrimmedValuesEqual() throws Exception {
    defaultClusterEnvProperties.putAll(defaultStackProps());
    Map<String, String> blueprintClusterEnv = defaultStackProps();
    // This change should not be considered as an update to cluster-env as trimmed values are still equal
    blueprintClusterEnv.put(
      CLUSTER_ENV_STACK_ROOT_PROPERTY,
      blueprintClusterEnv.get(CLUSTER_ENV_STACK_ROOT_PROPERTY) + "       \n");

    Map<String, Map<String, String>> blueprintProps = Maps.newHashMap(ImmutableMap.of(
      "cluster-env", blueprintClusterEnv
    ));
    Configuration clusterConfig = new Configuration(blueprintProps, emptyMap());

    TestHostGroup group = new TestHostGroup("groups1", Sets.newHashSet("NAMENODE"), ImmutableSet.of("host1"));
    ClusterTopology topology = createClusterTopology(bp, clusterConfig, ImmutableSet.of(group));

    BlueprintConfigurationProcessor updater = new BlueprintConfigurationProcessor(topology);

    Set<String> configTypesUpdated = Sets.newHashSet();
    updater.setStackToolsAndFeatures(clusterConfig, configTypesUpdated);
    assertEquals("cluster-env should NOT have been updated", ImmutableSet.of(), configTypesUpdated);
  }
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