### Question:
SubscriptionTemplate extends AbstractYammerOperations implements SubscriptionOperations { public void followTopic(long topicId) { follow("tag", topicId); } SubscriptionTemplate(RestTemplate restTemplate); void followUser(long userId); void followTopic(long topicId); void unfollowUser(long userId); void unfollowTopic(long topicId); boolean isFollowingUser(long userId); boolean isFollowingTopic(long topicId); boolean isFollowingThread(long threadId);  }### Answer:
@Test public void testFollowTopic(){ mockServer.expect(requestTo("https: .andExpect(method(POST)) .andExpect(content().string("target_type=tag&target_id=123")) .andRespond(withSuccess("", APPLICATION_JSON)); yammerTemplate.subscriptionOperations().followTopic(123L); }