FeedTemplate implements FeedOperations { public Feed getFeed(String feedId) { return restOperations.getForObject(FEED_URL + feedId + "/", Feed.class); } FeedTemplate(RestOperations restOperations); Feed createFeed(FeedConfig feedConfig); Feed getFeed(String feedId); List<Feed> getFeeds(); void updateFeed(String feedId, FeedConfig feedConfig); void deleteFeed(String feedId);  }
@Test public void getFeed() { masterKeyMockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withResponse(jsonResource("data/feed"), responseHeaders)); Feed feed = urbanAirship.feedOperations().getFeed("12345"); assertSingleFeed(feed); masterKeyMockServer.verify(); }