LuceneEngineFacade implements LuceneEngine { @Override public void buildIndex(final String rootDirectory) { indexEngine.createIndex(rootDirectory); }  @Override List<String> search(final String text); @Override void addFileToIndex(final String fileName); @Override void deleteFileFromIndex(final String fileName); @Override void buildIndex(final String rootDirectory);  }
@Test public void testBuildIndexShouldCallIndexEngine() { underTest.buildIndex(FILENAME); verify(indexEngine).createIndex(FILENAME); }