void () { final MyElement element = createElement("<a xmlns=\"foo\"/>", MyElement.class); registerNamespacePolicies(element); final XmlTag childTag = element.addChild().getXmlTag(); assertEquals("child", childTag.getName()); assertEquals("foo", childTag.getNamespace()); assertEquals("", childTag.getNamespacePrefix()); assertNull(childTag.getAttributeValue("xmlns")); }