### Question:
TicketInfoServiceImpl implements TicketInfoService { @Override public Response queryForStationId(String name, HttpHeaders headers) { HttpEntity requestEntity = new HttpEntity(headers); ResponseEntity<Response> re = restTemplate.exchange( "http: HttpMethod.GET, requestEntity, Response.class); return re.getBody(); }  @Override Response queryForTravel(Travel info, HttpHeaders headers); @Override Response queryForStationId(String name, HttpHeaders headers);  }### Answer:
@Test public void testQueryForStationId() { HttpEntity requestEntity = new HttpEntity(headers); Response response = new Response(); ResponseEntity<Response> re = new ResponseEntity<>(response, HttpStatus.OK); Mockito.when( restTemplate.exchange( "http: HttpMethod.GET, requestEntity, Response.class)).thenReturn(re); Response result = ticketInfoServiceImpl.queryForStationId("name", headers); Assert.assertEquals(new Response<>(null, null, null), result); }