@Test
public void testUpdateAtlasConfigs() throws Exception {

  Map<String, String> oldHiveProperties = new HashMap<String, String>();
  Map<String, String> newHiveProperties = new HashMap<String, String>();
  oldHiveProperties.put("hive.atlas.hook", "false");
  newHiveProperties.put("hive.atlas.hook", "true");
  testUpdateAtlasHookConfig(oldHiveProperties, newHiveProperties, "hive-env");
  Map<String, String> oldStormProperties = new HashMap<String, String>();
  Map<String, String> newStormProperties = new HashMap<String, String>();
  oldStormProperties.put("storm.atlas.hook", "false");
  newStormProperties.put("storm.atlas.hook", "true");
  testUpdateAtlasHookConfig(oldStormProperties, newStormProperties, "storm-env");
  Map<String, String> oldFalconProperties = new HashMap<String, String>();
  Map<String, String> newFalconProperties = new HashMap<String, String>();
  oldFalconProperties.put("falcon.atlas.hook", "false");
  newFalconProperties.put("falcon.atlas.hook", "true");
  testUpdateAtlasHookConfig(oldFalconProperties, newFalconProperties, "falcon-env");
  Map<String, String> oldSqoopProperties = new HashMap<String, String>();
  Map<String, String> newSqoopProperties = new HashMap<String, String>();
  oldSqoopProperties.put("sqoop.atlas.hook", "false");
  newSqoopProperties.put("sqoop.atlas.hook", "true");
  testUpdateAtlasHookConfig(oldSqoopProperties, newSqoopProperties, "sqoop-env");
}