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