assertEquals("number of children of children", 2, childrenElement.getChildCount());
assertEquals("There should be four children", 4, children.getChildCount()); assertNotNull("Grand child config element should not be null", grandKids); assertEquals("There should be 2 grand child config elements", 2, grandKids.getChildCount()); ConfigElement grandKidOne = grandKids.getChild("grand-child-one"); assertNotNull("Grand child one config element should not be null", grandKidOne); 1, grandKidOne.getAttributeCount()); assertEquals("The number of children for grand child one should be 0", 0, grandKidOne.getChildCount()); assertTrue("The attribute 'an-attribute' should be present", grandKidOne.getAttribute("an-attribute") != null);