}
public void testResourceSet() {
try {
String query = "//SPEECH[SPEAKER = 'HAMLET']";
XQueryService service = (XQueryService) testCollection.getService("XQueryService", "1.0");
service.setProperty("highlight-matches", "none");
CompiledExpression compiled = service.compile(query);
ResourceSet result = service.execute(compiled);
assertEquals(result.getSize(), 359);
for (int i = 0; i < result.getSize(); i++) {
XMLResource r = (XMLResource) result.getResource(i);