queryResource(query, "items.xml", "
    public void testUpdates() throws Exception {        String append =            "<xu:modifications xmlns:xu=\"http://www.xmldb.org/xupdate\" version=\"1.0\">" +            "<xu:append select=\"/items\">" +            "<item>" +            "<itemno>10</itemno>" +            "<name>New Item</name>" +            "<price>55.50</price>" +            "</item>" +            "</xu:append>" +            "</xu:modifications>";        String remove =            "<xu:modifications xmlns:xu=\"http://www.xmldb.org/xupdate\" version=\"1.0\">" +            "<xu:remove select=\"/items/item[itemno=7]\"/>" +            "</xu:modifications>";                XPathQueryService query = (XPathQueryService) testCollection.getService("XPathQueryService", "1.0");        XUpdateQueryService update = (XUpdateQueryService) testCollection.getService("XUpdateQueryService", "1.0");        long mods = update.updateResource("items.xml", append);		assertEquals(mods, 1);        queryResource(query, "items.xml", "//item[price = 55.50]", 1);                mods = update.updateResource("items.xml", remove);		assertEquals(mods, 1);        queryResource(query, "items.xml", "//item[itemno = 7]", 0);    }