@Test
public void testServiceRemoved() {

  StackInfo stack = stackManager.getStack("HDP", "2.0.8");
  ServiceInfo service = stack.getService("SPARK");
  assertNull(service);
  service = stack.getService("SPARK2");
  assertNull(service);
  List<String> removedServices = stack.getRemovedServices();
  assertEquals(removedServices.size(), 2);
  HashSet<String> expectedServices = new HashSet<String>();
  expectedServices.add("SPARK");
  expectedServices.add("SPARK2");
  for (String s : removedServices) {
    assertTrue(expectedServices.remove(s));
  }
  assertTrue(expectedServices.isEmpty());
}