void () { final MyElement rootElement = createEmptyElement(); myCallRegistry.clear(); assertNull(rootElement.getXmlTag()); rootElement.ensureTagExists(); final DomElement element = rootElement; myCallRegistry.putExpected(new DomEvent(element, true)); assertCached(rootElement, assertRootTag(rootElement)); myCallRegistry.assertResultsAndClear(); }