void () { final MyElement element = createElement("<a/>"); element.getXmlTag().setAttribute("attr", "foo"); putExpected(new DomEvent(element, false)); assertResultsAndClear(); assertTrue(element.getAttr().isValid()); element.getXmlTag().setAttribute("bttr", "foo"); element.getXmlTag().setAttribute("attr", "bar"); putExpected(new DomEvent(element, false)); putExpected(new DomEvent(element, false)); assertResultsAndClear(); assertTrue(element.getAttr().isValid()); element.getXmlTag().setAttribute("attr", null); putExpected(new DomEvent(element, false)); assertResultsAndClear(); assertTrue(element.getAttr().isValid()); }