LuceneEngineFacade implements LuceneEngine { @Override public void addFileToIndex(final String fileName) { indexEngine.addFileToIndex(fileName); }  @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 testAddFileToIndexShouldCallIndexEngine() { underTest.addFileToIndex(FILENAME); verify(indexEngine).addFileToIndex(FILENAME); }