FeedTemplate implements FeedOperations { public List<Feed> getFeeds() { return restOperations.getForObject(FEED_URL, FeedList.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 getFeeds() { masterKeyMockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withResponse(jsonResource("data/feed-list"), responseHeaders)); List<Feed> feeds = urbanAirship.feedOperations().getFeeds(); assertSingleFeed(feeds.get(0)); assertEquals("54321", feeds.get(1).getId()); assertEquals("https: assertEquals("http: assertEquals(2, feeds.get(1).getTemplate().getAps().getBadge()); assertEquals("dog.caf", feeds.get(1).getTemplate().getAps().getSound()); assertEquals("New item from some place! {{ title }}", feeds.get(1).getTemplate().getAps().getAlert()); assertFalse(feeds.get(1).isBroadcast()); masterKeyMockServer.verify(); }