### Question:
TimelineTemplate extends AbstractTwitterOperations implements TimelineOperations { public List<Tweet> getRetweetsOfMe() { return getRetweetsOfMe(1, 20, 0, 0); } TimelineTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser, boolean isAuthorizedForApp); List<Tweet> getHomeTimeline(); List<Tweet> getHomeTimeline(int pageSize); List<Tweet> getHomeTimeline(int pageSize, long sinceId, long maxId); List<Tweet> getUserTimeline(); List<Tweet> getUserTimeline(int pageSize); List<Tweet> getUserTimeline(int pageSize, long sinceId, long maxId); List<Tweet> getUserTimeline(String screenName); List<Tweet> getUserTimeline(String screenName, int pageSize); List<Tweet> getUserTimeline(String screenName, int pageSize, long sinceId, long maxId); List<Tweet> getUserTimeline(long userId); List<Tweet> getUserTimeline(long userId, int pageSize); List<Tweet> getUserTimeline(long userId, int pageSize, long sinceId, long maxId); List<Tweet> getMentions(); List<Tweet> getMentions(int pageSize); List<Tweet> getMentions(int pageSize, long sinceId, long maxId); List<Tweet> getRetweetsOfMe(); List<Tweet> getRetweetsOfMe(int page, int pageSize); List<Tweet> getRetweetsOfMe(int page, int pageSize, long sinceId, long maxId); Tweet getStatus(long tweetId); OEmbedTweet getStatusOEmbed(String tweetId); OEmbedTweet getStatusOEmbed(String tweetId, OEmbedOptions options); Tweet updateStatus(String message); Tweet updateStatus(String message, Resource media); Tweet updateStatus(TweetData tweetData); void deleteStatus(long tweetId); Tweet retweet(long tweetId); List<Tweet> getRetweets(long tweetId); List<Tweet> getRetweets(long tweetId, int count); List<Tweet> getFavorites(); List<Tweet> getFavorites(int pageSize); List<Tweet> getFavorites(long userId); List<Tweet> getFavorites(long userId, int pageSize); List<Tweet> getFavorites(String screenName); List<Tweet> getFavorites(String screenName, int pageSize); void addToFavorites(long tweetId); void removeFromFavorites(long tweetId);  }### Answer:
@Test public void getRetweetsOfMe() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("timeline"), APPLICATION_JSON)); List<Tweet> timeline = twitter.timelineOperations().getRetweetsOfMe(); assertTimelineTweets(timeline); }
@Test public void getRetweetsOfMe_paged() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("timeline"), APPLICATION_JSON)); List<Tweet> timeline = twitter.timelineOperations().getRetweetsOfMe(7, 25); assertTimelineTweets(timeline); }
@Test public void getRetweetsOfMe_paged_withSinceIdAndMaxId() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("timeline"), APPLICATION_JSON)); List<Tweet> timeline = twitter.timelineOperations().getRetweetsOfMe(7, 25, 2345, 3456); assertTimelineTweets(timeline); }