### Question:
AthleteTemplate extends AbstractStravaOperations implements AthleteOperations { public StravaAthleteProfile getAthleteProfileById(String id) { return restTemplate.getForObject(buildUri("/athletes/" + id), StravaAthleteProfile.class); } AthleteTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser); String getProfileId(); StravaAthleteProfile getAthleteProfile(); String getProfileUrl(); StravaAthleteProfile getAthleteProfileById(String id); List<StravaSegment> getSegments(String user);  }### Answer:
@Test public void getAthleteById() throws Exception { mockServer.expect(requestTo("https: .andExpect(header("Authorization", "Bearer ACCESS_TOKEN")) .andRespond(withSuccess(new ClassPathResource("athlete.json", getClass()), MediaType.APPLICATION_JSON)); StravaAthleteProfile profile = strava.athleteOperations().getAthleteProfileById("5678"); assertEquals("John Applestrava", profile.getName()); assertEquals(227615, profile.getId()); assertEquals("http: assertEquals("http: }