### Question:
SearchTemplate extends AbstractTwitterOperations implements SearchOperations { public SavedSearch getSavedSearch(long searchId) { requireUserAuthorization(); return restTemplate.getForObject(buildUri("saved_searches/show/" + searchId + ".json"), SavedSearch.class); } SearchTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser, boolean isAuthorizedForApp); SearchResults search(String query); SearchResults search(String query, int resultsPerPage); SearchResults search(String query, int resultsPerPage, long sinceId, long maxId); SearchResults search(SearchParameters searchParameters); List<SavedSearch> getSavedSearches(); SavedSearch getSavedSearch(long searchId); SavedSearch createSavedSearch(String query); void deleteSavedSearch(long searchId); Trends getLocalTrends(long whereOnEarthId); Trends getLocalTrends(long whereOnEarthId, boolean excludeHashtags);  }### Answer:
@Test public void getSavedSearch() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("saved-search"), APPLICATION_JSON)); SavedSearch savedSearch = twitter.searchOperations().getSavedSearch(26897775); assertEquals(26897775, savedSearch.getId()); assertEquals("#springsocial", savedSearch.getQuery()); assertEquals("#springsocial", savedSearch.getName()); assertEquals(0, savedSearch.getPosition()); }