@Test
public void testChildNames()
{

   SimpleManagedResource root = createRootResource();
   SimpleManagedResource a = (SimpleManagedResource) root.registerSubResource("a", A_DESC);
   SimpleManagedResource a_1 = (SimpleManagedResource) a.registerSubResource("a-1", A_1_DESC);
   SimpleManagedResource a_1_1 = (SimpleManagedResource) a_1.registerSubResource("a-1-1", A_1_1_DESC);
   SimpleManagedResource a_2 = (SimpleManagedResource) a.registerSubResource("a-2", A_2_DESC);
   SimpleManagedResource b = (SimpleManagedResource) root.registerSubResource("b", B_DESC);
   SimpleManagedResource c = (SimpleManagedResource) root.registerSubResource("c", C_DESC);
   SimpleManagedResource c_1 = (SimpleManagedResource) c.registerSubResource("c-1", C_1_DESC);
   assertChildNames(root, asSet("a-1", "a-2"), "a");
   assertChildNames(root, asSet("a-1-1"), "a", "a-1");
   assertChildNames(root, asSet(), "a", "a-1", "a-1-1");
   assertChildNames(root, asSet(), "a", "a-2");
   assertChildNames(root, asSet(), "b");
   assertChildNames(root, asSet("c-1"), "c");
   assertChildNames(root, asSet(), "c", "c-1");
}