@Test
public void testAtlasHivePropertiesWithHTTPS() throws Exception {

  Map<String, Map<String, String>> properties = new HashMap<String, Map<String, String>>();
  Map<String, String> atlasProperties = new HashMap<String, String>();
  properties.put("application-properties", atlasProperties);
  // use https
  atlasProperties.put("atlas.enableTLS", "true");
  atlasProperties.put("atlas.server.bind.address", "localhost");
  atlasProperties.put("atlas.server.https.port", "99999");
  Map<String, String> atlasEnv = new HashMap<String, String>();
  properties.put("atlas-env", atlasEnv);
  Map<String, String> hiveProperties = new HashMap<String, String>();
  // default hook registered
  hiveProperties.put("hive.exec.post.hooks", "foo");
  properties.put("hive-site", hiveProperties);
  Map<String, String> hiveEnv = new HashMap<String, String>();
  hiveEnv.put("hive.atlas.hook", "false");
  properties.put("hive-env", hiveEnv);
  Map<String, Map<String, String>> parentProperties = new HashMap<String, Map<String, String>>();
  Configuration parentClusterConfig = new Configuration(parentProperties,
      Collections.<String, Map<String, Map<String, String>>>emptyMap());
  Configuration clusterConfig = new Configuration(properties,
      Collections.<String, Map<String, Map<String, String>>>emptyMap(), parentClusterConfig);
  Collection<String> hgComponents1 = new HashSet<String>();
  hgComponents1.add("ATLAS_SERVER");
  hgComponents1.add("HIVE_SERVER");
  TestHostGroup group1 = new TestHostGroup("group1", hgComponents1, Collections.singleton("host1"));
  Collection<TestHostGroup> hostGroups = Collections.singletonList(group1);
  ClusterTopology topology = createClusterTopology(bp, clusterConfig, hostGroups);
  BlueprintConfigurationProcessor configProcessor = new BlueprintConfigurationProcessor(topology);
  configProcessor.doUpdateForClusterCreate();
  assertEquals("foo,org.apache.atlas.hive.hook.HiveHook", clusterConfig.getPropertyValue("hive-site", "hive.exec.post.hooks"));
  assertEquals(null, clusterConfig.getPropertyValue("hive-site", "atlas.cluster.name"));
  assertEquals(null, clusterConfig.getPropertyValue("hive-site", "atlas.rest.address"));
}