public void testParseWithNamespacesAsMap()
{
String xml = XmlParserResources.INSTANCE.swissArmyKnifeNs().getText();
Document document = new XmlParser().parse(xml, NAMESPACES_MAP);
assertDocument(document);
assertRootElement(document, document.getRoot());
assertIdAttribute(document, document.getRoot(), document.getRoot().getAttribute(ID_ATTRIBUTE));
}