for (Iterator it = queries.iterator(); it.hasNext(); ) {
Query q = (Query) it.next();
String lang = q.getLanguage();
checkResult(q.execute(), new Node[]{n});
Node stored = q.storeAsNode(testRoot + "/" + nodeName1);
q = qm.getQuery(stored);
assertEquals("language of stored query does not match", lang, q.getLanguage());
checkResult(q.execute(), new Node[]{n});
stored.remove();
}