### Question:
SearchTemplate extends AbstractYammerOperations implements SearchOperations { public SearchResults search(String searchString){ return search(searchString, 1); } SearchTemplate(RestTemplate restTemplate); SearchResults search(String searchString); SearchResults search(String searchString, int page); SearchResults search(String searchString, int page, int numberPerPage);  }### Answer:
@Test public void testSearchWithSearchStringOnly(){ mockServer.expect(requestTo("https: .andRespond(withSuccess(jsonResource("testdata/yammer-search-results"), APPLICATION_JSON)); SearchResults searchResults = yammerTemplate.searchOperations().search("foo"); assertSearchResult(searchResults); }
@Test public void testSearchWithSearchStringAndPage(){ mockServer.expect(requestTo("https: .andRespond(withSuccess(jsonResource("testdata/yammer-search-results"), APPLICATION_JSON)); SearchResults searchResults = yammerTemplate.searchOperations().search("foo",2); assertSearchResult(searchResults); }
@Test public void testSearchWithSearchStringPageAndNumPerPage(){ mockServer.expect(requestTo("https: .andRespond(withSuccess(jsonResource("testdata/yammer-search-results"), APPLICATION_JSON)); SearchResults searchResults = yammerTemplate.searchOperations().search("foo",2,10); assertSearchResult(searchResults); }