void () { final MyElement element = createElement("<a><child/><child/><child-element/></a>"); final MyElement child = element.getChild(); final MyElement child2 = element.getChild2(); final MyElement firstChild = element.getChildElements().get(0); element.getXmlTag().add(createTag("<child-element/>")); final XmlTag[] subTags = element.getXmlTag().getSubTags(); assertEquals(2, element.getChildElements().size()); assertEquals(firstChild, element.getChildElements().get(0)); MyElement nextChild = element.getChildElements().get(1); putExpected(new DomEvent(element, false)); assertResultsAndClear(); }