* Test for void deleteDocument(Term)
*/
final public void testDeleteDocumentTerm() throws Exception {
SimpleAnalyzer analyzer = new SimpleAnalyzer();
MockControl indexFactoryControl = MockControl.createStrictControl(IndexFactory.class);
IndexFactory indexFactory = (IndexFactory)indexFactoryControl.getMock();
MockControl indexReaderControl = MockControl.createStrictControl(LuceneIndexReader.class);
LuceneIndexReader indexReader = (LuceneIndexReader)indexReaderControl.getMock();
indexFactory.getIndexReader();
indexFactoryControl.setReturnValue(indexReader, 1);
indexReader.deleteDocuments(new Term("field","lucene"));
indexReaderControl.setReturnValue(1, 1);