LuceneIndexTemplate template = new DefaultLuceneIndexTemplate(indexFactory, analyzer);
template.addDocument(documentCreator);
indexFactoryControl.verify();
indexWriterControl.verify();
documentCreatorControl.verify();
}
final public void testAddDocumentWithInputStream() throws Exception {
SimpleAnalyzer analyzer = new SimpleAnalyzer();
MockControl indexFactoryControl = MockControl.createStrictControl(IndexFactory.class);