void () { final MyElement root = createElement("<a xmlns=\"foo\"/>", MyElement.class); getDomManager().getDomFileDescription(root.getXmlElement()).registerNamespacePolicy("foo", "bar", "foo"); final XmlTag fooChildTag = root.getFooChild().ensureTagExists(); assertEquals("foo-child", fooChildTag.getName()); assertEquals("foo", fooChildTag.getNamespace()); assertEquals("", fooChildTag.getNamespacePrefix()); assertEquals(0, fooChildTag.getAttributes().length); }