### Question:
BasicServiceImpl implements BasicService { @Override public Response queryForStationId(String stationName, HttpHeaders headers) { BasicServiceImpl.LOGGER.info("[Basic Information Service][Query For Station Id] Station Id: {}", stationName); 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 stationName, HttpHeaders headers); boolean checkStationExists(String stationName, HttpHeaders headers); TrainType queryTrainType(String trainTypeId, HttpHeaders headers);  }### Answer:
@Test public void testQueryForStationId() { 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 = basicServiceImpl.queryForStationId("stationName", headers); Assert.assertEquals(new Response<>(null, null, null), result); }