Assert.assertEquals(Integer.valueOf(123), connection.getAttribute(child1ObjectName, "attr"));
Assert.assertEquals(Integer.valueOf(456), connection.getAttribute(child2ObjectName, "attr"));
connection.invoke(child1ObjectName, REMOVE, new Object[] {}, new String[] {});
names = connection.queryNames(createObjectName(Constants.DOMAIN + ":subsystem=test,*"), null);
Assert.assertEquals(2, names.size());
Assert.assertTrue(names.contains(testObjectName));
Assert.assertTrue(names.contains(child2ObjectName));
connection.invoke(child2ObjectName, REMOVE, new Object[] {}, new String[] {});