void () { final XmlFile file = createXmlFile("<a/>"); final DomManagerImpl manager = getDomManager(); final DomFileElementImpl<DomElement> fileElement = manager.getFileElement(file, DomElement.class, "a"); assertEquals(fileElement, manager.getFileElement(file, DomElement.class, "a")); assertCached(fileElement, file); assertEquals(fileElement.getRootElement(), fileElement.getRootElement()); }