### Question:
StopWordsFilter implements SearchRequestFilter { @Override public String filter(String searchText) { String result = searchText; for (String stopWordsFile : stopWordsFiles) { result = filter(result, stopWordsFile); } return result; } StopWordsFilter(List<String> stopWordsFiles, boolean ignoreCase); @Override String filter(String searchText);  }### Answer:
@Test public void testExcludeStopWord() { String searchText = "The book"; searchText = filter.filter(searchText); Assert.assertEquals("The word has not been excluded.", "book", searchText); }
@Test public void testExcludeMoreThanOneStopWord() { String searchText = "The text the word"; searchText = filter.filter(searchText); Assert.assertEquals("The word has not been excluded.", "text word", searchText); }
@Test public void testCorrectSearchText() { String searchText = "nice book"; String filterResult = filter.filter(searchText); Assert.assertEquals("The search text should remain the same.", searchText, filterResult); }