### Question:
UserTemplate extends AbstractYammerOperations implements UserOperations { public List<YammerProfile> getUsers(int page){ return getUsers(page, null, false, null); } UserTemplate(RestTemplate restTemplate); List<YammerProfile> getUsers(int page); List<YammerProfile> getUsers(int page, String sortBy, boolean reverse, Character letter); YammerProfile getUser(long id); YammerProfile getUser(String userId); void updateProfile(long userId, UserInfo userInfo); YammerProfile getUserProfile(); YammerProfile getUserByEmail(String email);  }### Answer:
@Test public void testGetUsers() throws UnsupportedEncodingException{ responseHeaders.setContentType(APPLICATION_JSON); mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("testdata/yammer-users"), APPLICATION_JSON)); List<YammerProfile> users = yammerTemplate.userOperations().getUsers(1, UserOperations.SORT_BY_MESSAGES, false, 'A'); assertYammerProfile(users.get(0)); }
@Test public void testGetUsers_page() throws UnsupportedEncodingException{ mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("testdata/yammer-users"), APPLICATION_JSON)); List<YammerProfile> users = yammerTemplate.userOperations().getUsers(1); assertYammerProfile(users.get(0)); }