void () { final XmlFile file = createXmlFile("<a>foo</a>"); DomFileElementImpl<MyElement> fileElement = getDomManager().getFileElement(file, MyElement.class, "a"); final MyElement rootElement = fileElement.getRootElement(); assertNotNull(rootElement); assertEquals("foo", rootElement.getValue()); }