DBBroker broker = null;
try {
broker = pool.get(pool.getSecurityManager().getSystemSubject());
assertNotNull(broker);
broker.reindexCollection(TestConstants.TEST_COLLECTION_URI);
checkIndex(docs, broker, new QName[] { new QName("head", "") }, "title", 1);
Occurrences[] o = checkIndex(docs, broker, new QName[]{new QName("p", "")}, "with", 1);
assertEquals(2, o[0].getOccurrences());
checkIndex(docs, broker, new QName[] { new QName("hi", "") }, "just", 1);