@Test
public void testComponentDeletion() {

  StackInfo stack = stackManager.getStack("HDP", "2.0.6");
  ServiceInfo yarnService = stack.getService("YARN");
  assertNull(yarnService.getComponentByName("YARN_CLIENT"));
  stack = stackManager.getStack("HDP", "2.0.6.1");
  yarnService = stack.getService("YARN");
  assertNull(yarnService.getComponentByName("YARN_CLIENT"));
  stack = stackManager.getStack("HDP", "2.0.7");
  yarnService = stack.getService("YARN");
  assertNotNull(yarnService.getComponentByName("YARN_CLIENT"));
}