void () { final XmlFile file = createXmlFile(""); final DomFileElementImpl<MyElement> fileElement = getDomManager().getFileElement(file, MyElement.class, "root"); myCallRegistry.clear(); assertNull(fileElement.getRootElement().getXmlTag()); file.getDocument().replace(createXmlFile("<root/>").getDocument()); final XmlTag rootTag = fileElement.getRootTag(); assertEquals(rootTag, file.getDocument().getRootTag()); putExpected(new DomEvent(fileElement.getRootElement(), false)); assertResultsAndClear(); }