* correctly updated.
*/
@Test
public void xupdateRemove() {
DocumentSet docs = configureAndStore(COLLECTION_CONFIG2, XML2, "xupdate.xml");
DBBroker broker = null;
TransactionManager transact = null;
Txn transaction = null;
try {
broker = pool.get(pool.getSecurityManager().getSystemSubject());
transact = pool.getTransactionManager();
transaction = transact.beginTransaction();
checkIndex(docs, broker, new QName[] { new QName("description", "") }, "chair", 1);
checkIndex(docs, broker, new QName[] { new QName("item", "") }, null, 5);
checkIndex(docs, broker, new QName[] { new QName("condition", "") }, null, 2);
XQuery xquery = broker.getXQueryService();
assertNotNull(xquery);
Sequence seq = xquery.execute("//item[ft:query(description, 'chair')]", null, AccessContext.TEST);
assertNotNull(seq);
assertEquals(1, seq.getItemCount());