LuceneEngineFacade implements LuceneEngine { @Override public void deleteFileFromIndex(final String fileName) { deleteEngine.deleteDocFromIndex(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 testDeleteFileFromIndexShouldCallDeleteEngine() { underTest.deleteFileFromIndex(FILENAME); verify(deleteEngine).deleteDocFromIndex(FILENAME); }