void () { final MyElement element = createElement("<a attr=\"foo\"/>"); final GenericAttributeValue<String> attr = element.getAttr(); attr.getXmlAttributeValue().getFirstChild().replace(createTag("<a attr=\"bar\"/>").getAttribute("attr", null).getValueElement().getFirstChild()); putExpected(new DomEvent(element, false)); assertResultsAndClear(); assertTrue(attr.isValid()); }