LuceneService { public void removeDocument(Query query) { removeDocuments(Arrays.asList(new Query[] { query })); } 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 testRemoveDocument_1() throws Exception { LuceneService fixture = new LuceneService(); Query query = new BooleanQuery.Builder().setMinimumNumberShouldMatch(1).build(); fixture.removeDocument(query); }