@Test
public void testInheritanceAfterComponentDeletion() {

  StackInfo stack = stackManager.getStack("HDP", "2.0.6");
  ServiceInfo yarnService = stack.getService("HBASE");
  assertNull(yarnService.getComponentByName("HBASE_CLIENT"));
  stack = stackManager.getStack("HDP", "2.0.6.1");
  yarnService = stack.getService("HBASE");
  assertNull(yarnService.getComponentByName("HBASE_CLIENT"));
  stack = stackManager.getStack("HDP", "2.0.8");
  yarnService = stack.getService("HBASE");
  assertNotNull(yarnService.getComponentByName("HBASE_CLIENT"));
}