FeedTemplate implements FeedOperations { public void updateFeed(String feedId, FeedConfig feedConfig) { restOperations.put(FEED_URL + feedId + "/", feedConfig); } 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 updateFeed() { masterKeyMockServer.expect(requestTo("https: .andExpect(method(PUT)) .andExpect(body(readCompactedJsonResource(jsonResource("data/feed-create")))) .andRespond(withResponse("", responseHeaders)); FeedConfig feedConfig = FeedConfig.builder("https: urbanAirship.feedOperations().updateFeed("12345", feedConfig); masterKeyMockServer.verify(); }