@Test
public void testSearchShouldReturnText() {

    //GIVEN
    String text = "text";
    List<String> expected = new ArrayList<>();
    expected.add("result");
    given(searchEngine.searchForText(text)).willReturn(expected);
    //WHEN
    List<String> actual = underTest.search(text);
    //THEN
    assertEquals(actual.get(0), expected.get(0));
}