void () { final MyElement element = createElement(""); element.getName().setValue("A"); final XmlTag tag = element.getXmlTag(); final DomMetaData metaData = assertInstanceOf(tag.getMetaData(), DomMetaData.class); assertEquals(tag, metaData.getDeclaration()); assertOrderedEquals(metaData.getDependencies(), DomUtil.getFileElement(element), tag); assertEquals("A", metaData.getName()); assertEquals("A", metaData.getName(null)); metaData.setName("B"); assertEquals("B", element.getName().getValue()); }