LuceneService { public void indexDocument(Document doc) { indexDocuments(Arrays.asList(new Document[] { doc })); } LuceneService();   LuceneService(Directory directory); void indexDocument(Document doc); void indexDocuments(List<Document> docs); void removeDocument(Query query); void removeDocuments(List<Query> queries); List<Document> search(Query query, boolean prefixWildCard); void clearIndex();  }
@Test public void testIndexDocument_1() throws Exception { LuceneService fixture = new LuceneService(); Document doc = new Document(); fixture.indexDocument(doc); }