@Test
public void testGetAncestorControllerServicesFromLeafBackToRoot() {

    final Set<VersionedControllerService> services = ComponentUtils.getAncestorControllerServices(groupLevel2Child4.getIdentifier(), rootGroup);
    Assert.assertEquals(3, services.size());
    Assert.assertTrue(services.contains(rootService));
    Assert.assertTrue(services.contains(serviceLevel1Child2));
    Assert.assertTrue(services.contains(serviceLevel2Child4));
}