### Question:
UserTemplate extends AbstractTwitterOperations implements UserOperations { public List<TwitterProfile> getSuggestions(String slug) { requireEitherUserOrAppAuthorization(); return restTemplate.getForObject(buildUri("users/suggestions/" + slug + ".json"), TwitterProfileUsersList.class).getList(); } UserTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser, boolean isAuthorizedForApp); long getProfileId(); String getScreenName(); TwitterProfile getUserProfile(); TwitterProfile getUserProfile(String screenName); TwitterProfile getUserProfile(long userId); List<TwitterProfile> getUsers(long... userIds); List<TwitterProfile> getUsers(String... screenNames); List<TwitterProfile> searchForUsers(String query); List<TwitterProfile> searchForUsers(String query, int page, int pageSize); List<SuggestionCategory> getSuggestionCategories(); List<TwitterProfile> getSuggestions(String slug); Map<ResourceFamily, List<RateLimitStatus>> getRateLimitStatus(ResourceFamily... resources); AccountSettings getAccountSettings(); AccountSettings updateAccountSettings(AccountSettingsData accountSettingsData);  }### Answer:
@Test public void getSuggestions() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("suggestions"), APPLICATION_JSON)); List<TwitterProfile> users = twitter.userOperations().getSuggestions("springsource"); assertEquals(2, users.size()); assertEquals("royclarkson", users.get(0).getScreenName()); assertEquals("kdonald", users.get(1).getScreenName()); }