resu = (XMLResource) result.getResource(0);
assertEquals("XQuery: " + query, "2", ((Element) resu.getContentAsDOM()).getAttribute("id"));
System.out.println("testFor 4: ========");
query = "for $f in /*/item order by xs:double($f/price) descending return $f";
result = service.queryResource(NUMBERS_XML, query);
printResult(result);
resu = (XMLResource) result.getResource(0);
assertEquals("XQuery: " + query, "4", ((Element) resu.getContentAsDOM()).getAttribute("id"));
System.out.println("testFor 5: ========");