$t->isa_ok($index, 'Zend_Search_Lucene', '->open() opens the index');
$engine->open();
$t->ok($index === $engine->getIndex(), '->open() does not open another index if it is already open');
$engine->close();
try {
    $msg = '->close() closes the index';
    $engine->getIndex();
    $t->fail($msg);
} catch (Exception $e) {
    $t->pass($msg);
}
$engine->open();
$t->isa_ok($engine->getIndex(), 'Zend_Search_Lucene', '->open() can reopen the index');
$t->diag('->getAnalyzer(), ->setAnalyzer()');
$t->isa_ok($engine->getAnalyzer(), 'Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num_CaseInsensitive', '->getAnalyzer() is UTF8, number, and case insensitive by default');
$engine->setAnalyzer(new Zend_Search_Lucene_Analysis_Analyzer_Common_Text());
$t->isa_ok($engine->getAnalyzer(), 'Zend_Search_Lucene_Analysis_Analyzer_Common_Text', '->setAnalyzer() can change the analyzer');
$engine->setAnalyzer(new Zend_Search_Lucene_Analysis_Analyzer_Common_Text());
$t->isa_ok($engine->getAnalyzer(), 'Zend_Search_Lucene_Analysis_Analyzer_Common_Text', '->configure() does not change analyzer is no analyzer flag is present');
$t->diag('->enableBatchMode(), ->enableInteractiveMode()');
$engine->enableBatchMode();
$index = $engine->getIndex();
$t->is($index->getMaxBufferedDocs(), 500, '->enableBatchMode() changes max buffered docs');
$t->is($index->getMaxMergeDocs(), PHP_INT_MAX, '->enableBatchMode() changes max merge docs');
$t->is($index->getMergeFactor(), 100, '->enableBatchMode() changes merge factor');
$engine->enableInteractiveMode();
$t->is($index->getMaxBufferedDocs(), 10, '->enableInteractiveMode() changes max buffered docs');
$t->is($index->getMaxMergeDocs(), PHP_INT_MAX, '->enableInteractiveMode() changes max merge docs');
$t->is($index->getMergeFactor(), 10, '->enableInteractiveMode() changes merge factor');
$t->diag('->rewriteDocument()');
$doc = new xfDocument('guid');