@Test
public void testSearchAndZipWhenQueryIsNotValid() throws IOException {

    //GIVEN
    given(luceneEngine.search("test")).willThrow(new QueryCannotBeParsedException("Parse Exception"));
    //WHEN
    underTest.searchAndZip("test", response);
    //THEN
    verify(fileZipper).createZipWithFiles(new ArrayList<List<String>>(), outputStream);
}