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