@Test public void testSearchShouldReturnText() { String text = "text"; List<String> expected = new ArrayList<>(); expected.add("result"); given(searchEngine.searchForText(text)).willReturn(expected); List<String> actual = underTest.search(text); assertEquals(actual.get(0), expected.get(0)); }
@Override public List<String> search(final String text) { return searchEngine.searchForText(text); }
LuceneEngineFacade implements LuceneEngine { @Override public List<String> search(final String text) { return searchEngine.searchForText(text); } }
LuceneEngineFacade implements LuceneEngine { @Override public List<String> search(final String text) { return searchEngine.searchForText(text); }  }
LuceneEngineFacade implements LuceneEngine { @Override public List<String> search(final String text) { return searchEngine.searchForText(text); }  @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); }
LuceneEngineFacade implements LuceneEngine { @Override public List<String> search(final String text) { return searchEngine.searchForText(text); }  @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);  }