@Test
 public void emptySearchResultTest() throws Exception {
   Parameters param = new Parameters();
   param.setQuery("cook");
   param.setStream(true);
   param.setLimit(40);
   param.setHideRetweets(false);
   param.setHelp(false);
   param.setPlace("");
   List<Status> tweets = search.search(param);
   assertThat(tweets, hasSize(0));
 }
 @Test
 public void simpleSetQueryTest() throws Exception {
   Parameters param = new Parameters();
   param.setQuery("cook");
   param.setStream(true);
   param.setLimit(40);
   param.setHideRetweets(true);
   param.setHelp(false);
   param.setPlace("Moscow");
   Query query = search.setQuery(param);
   assertEquals(query.getQuery(), "cook");
 }
 @Test
 public void limitSearchResultTest() throws Exception {
   Parameters param = new Parameters();
   param.setQuery("cook");
   param.setStream(true);
   param.setLimit(40);
   param.setHideRetweets(false);
   param.setHelp(false);
   param.setPlace("");
   List<Status> tweets = search.search(param);
   assertThat(tweets, hasSize(40));
   verify(twitter).search((Query) argThat(hasProperty("query", equalTo("cook"))));
 }