test_class.file: spring-social-strava/src/test/java/org/springframework/social/strava/api/impl/SegmentTemplateTest.java
test_class.identifier: SegmentTemplateTest
test_class.superclass: extends AbstractStravaApiTest
test_case.body: @Test
  	public void testGetSegmentById() throws Exception {
  		mockServer.expect(requestTo("https://www.strava.com/api/v3/segments/1234")).andExpect(method(GET))
  				.andExpect(header("Authorization", "Bearer ACCESS_TOKEN"))
  				.andRespond(withSuccess(new ClassPathResource("segment.json", getClass()), MediaType.APPLICATION_JSON));
  
          StravaSegment segment = strava.segmentOperations().getSegmentById("1234");
  
  		assertEquals(229781, segment.getId());
  		assertEquals("Hawk Hill", segment.getName());
          assertEquals("Ride", segment.getActivityType());
  		assertEquals(2684.82, segment.getDistance(), .1);
  		assertEquals("}g|e...VJr@", segment.getMap().getPolyline());
  	}
test_case.class_method_signature: SegmentTemplateTest.testGetSegmentById()
test_case.full_signature: @Test public void testGetSegmentById()
test_case.identifier: testGetSegmentById
test_case.invocations: andRespond andExpect andExpect expect requestTo method header withSuccess getClass getSegmentById segmentOperations assertEquals getId assertEquals getName assertEquals getActivityType assertEquals getDistance assertEquals getPolyline getMap
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetSegmentById()
focal_class.declarator: restTemplate
focal_class.modifier: private final
focal_class.original_string: private final RestTemplate restTemplate;
focal_class.type: RestTemplate
focal_class.var_name: restTemplate
focal_class.file: spring-social-strava/src/main/java/org/springframework/social/strava/api/impl/SegmentTemplate.java
focal_class.identifier: SegmentTemplate
focal_class.interfaces: implements SegmentOperations
focal_class.class_method_signature: SegmentTemplate.SegmentTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser)
focal_class.full_signature: public  SegmentTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser)
focal_class.identifier: SegmentTemplate
focal_class.modifiers: public
focal_class.parameters: (RestTemplate restTemplate, boolean isAuthorizedForUser)
focal_class.signature:  SegmentTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser)
focal_class.class_method_signature: SegmentTemplate.getSegmentById(String id)
focal_class.full_signature: public StravaSegment getSegmentById(String id)
focal_class.identifier: getSegmentById
focal_class.modifiers: public
focal_class.parameters: (String id)
focal_class.return: StravaSegment
focal_class.signature: StravaSegment getSegmentById(String id)
focal_class.superclass: extends AbstractStravaOperations
focal_method.body: public StravaSegment getSegmentById(String id) {
          return restTemplate.getForObject(buildUri("/segments/" + id), StravaSegment.class);
      }
focal_method.class_method_signature: SegmentTemplate.getSegmentById(String id)
focal_method.full_signature: public StravaSegment getSegmentById(String id)
focal_method.identifier: getSegmentById
focal_method.invocations: getForObject buildUri
focal_method.modifiers: public
focal_method.parameters: (String id)
focal_method.return: StravaSegment
focal_method.signature: StravaSegment getSegmentById(String id)