### Question:
ThreadTemplate extends AbstractYammerOperations implements ThreadOperations { public YammerThread getThread(long id) { return restTemplate.getForObject(buildUri("threads/"+id+".json"), YammerThread.class); } ThreadTemplate(RestTemplate restTemplate); YammerThread getThread(long id);  }### Answer:
@Test public void testGetThread(){ responseHeaders.setContentType(MediaType.APPLICATION_JSON); mockServer.expect(requestTo("https: .andRespond(withSuccess(jsonResource("testdata/yammer-thread"), MediaType.APPLICATION_JSON)); YammerThread thread = yammerTemplate.threadOperations().getThread(123L); assertThat(thread, notNullValue()); assertThread(thread); }