void () { final MyElement element = createElement("<a/>"); final XmlTag tag = element.getChild2().ensureTagExists(); final XmlTag[] subTags = element.getXmlTag().findSubTags("child"); assertEquals(2, subTags.length); assertSame(tag, subTags[1]); assertCached(element.getChild(), subTags[0]); final DomElement element1 = element.getChild(); putExpected(new DomEvent(element1, true)); final DomElement element2 = element.getChild().getAttr(); putExpected(new DomEvent(element2, true)); final DomElement element3 = element.getChild().isGenericValue(); putExpected(new DomEvent(element3, true)); final DomElement element4 = element.getChild2(); putExpected(new DomEvent(element4, true)); final DomElement element5 = element.getChild2().getAttr(); putExpected(new DomEvent(element5, true)); final DomElement element6 = element.getChild2().isGenericValue(); putExpected(new DomEvent(element6, true)); assertResultsAndClear(); }