void () { registerDomExtender(AttrDomExtender3.class); final MyElement element = createElement("<a attr=\"xxx\"/>", MyElement.class); assertEquals("xxx", assertInstanceOf(assertOneElement(getCustomChildren(element)), MyAttribute.class).getXmlElementName()); }