### Question:
UserTemplate extends AbstractTwitterOperations implements UserOperations { public AccountSettings getAccountSettings() { requireUserAuthorization(); return restTemplate.getForObject(buildUri("account/settings.json"), AccountSettings.class); } 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 getAccountSettings() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("account-settings"), APPLICATION_JSON)); AccountSettings settings = twitter.userOperations().getAccountSettings(); assertTrue(settings.isAlwaysUseHttps()); assertTrue(settings.isDiscoverableByEmail()); assertTrue(settings.isDiscoverableByMobilePhone()); assertTrue(settings.isDisplaySensitiveMedia()); assertTrue(settings.isGeoEnabled()); assertEquals("en", settings.getLanguage()); assertFalse(settings.isProtected()); assertEquals("theSeanCook", settings.getScreenName()); assertTrue(settings.isUseCookiePersonalization()); assertTrue(settings.getSleepTime().isEnabled()); assertEquals(1, settings.getSleepTime().getStartTime().intValue()); assertEquals(6, settings.getSleepTime().getEndTime().intValue()); assertEquals("Pacific Time (US & Canada)", settings.getTimeZone().getName()); assertEquals("America/Los_Angeles", settings.getTimeZone().getTZInfoName()); assertEquals(-28800, settings.getTimeZone().getUTCOffset()); assertEquals("United States", settings.getTrendLocation().get(0).getCountry()); assertEquals("US", settings.getTrendLocation().get(0).getCountryCode()); assertEquals("Atlanta", settings.getTrendLocation().get(0).getName()); assertEquals(23424977, settings.getTrendLocation().get(0).getParentId()); assertEquals("https: assertEquals(2357024, settings.getTrendLocation().get(0).getWhereOnEarthID()); }