@Test
public void testConfigDependenciesInheritance() throws Exception{

  StackInfo stack = stackManager.getStack("HDP", "2.0.6");
  ServiceInfo hdfsService = stack.getService("HDFS");
  assertEquals(5, hdfsService.getConfigDependencies().size());
  assertEquals(4, hdfsService.getConfigTypeAttributes().size());
  assertTrue(hdfsService.getConfigDependencies().contains("core-site"));
  assertTrue(hdfsService.getConfigDependencies().contains("global"));
  assertTrue(hdfsService.getConfigDependencies().contains("hdfs-site"));
  assertTrue(hdfsService.getConfigDependencies().contains("hdfs-log4j"));
  assertTrue(hdfsService.getConfigDependencies().contains("hadoop-policy"));
  assertTrue(Boolean.valueOf(hdfsService.getConfigTypeAttributes().get("core-site").get("supports").get("final")));
  assertFalse(Boolean.valueOf(hdfsService.getConfigTypeAttributes().get("global").get("supports").get("final")));
}