LuceneIndexTemplate template = new DefaultLuceneIndexTemplate(indexFactory,analyzer);
template.addDocuments(documentsCreator);
indexFactoryControl.verify();
indexWriterControl.verify();
documentsCreatorControl.verify();
}
final public void testUpdateDocument() throws Exception {
SimpleAnalyzer analyzer = new SimpleAnalyzer();
MockControl indexFactoryControl = MockControl.createStrictControl(IndexFactory.class);