}
Node root = ((Document) result.getNode()).getDocumentElement();
JXPathContext ctx = JXPathContext.newContext(root);
assertEquals("Wrong root name", rootName, root.getNodeName());
assertEquals("Wrong number of children", 3, ctx.selectNodes("/*").size());
check(ctx, "world/continents/continent", CONTINENTS);
check(ctx, "world/greeting", new String[] { "Hello", "Salute" });
check(ctx, "world/wish", "Peace");
check(ctx, "application/mail/smtp", "smtp.mymail.org");