@Test
public void testHiveWithoutAtlas() throws Exception {

  Map<String, Map<String, String>> properties = new HashMap<String, Map<String, String>>();
  Map<String, String> hiveProperties = new HashMap<String, String>();
  hiveProperties.put("hive.exec.post.hooks", "");
  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("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(null, clusterConfig.getPropertyValue("hive-site", "atlas.cluster.name"));
  assertEquals(null, clusterConfig.getPropertyValue("hive-site", "atlas.rest.address"));
}