### Question:
AdminBasicInfoServiceImpl implements AdminBasicInfoService { @Override public Response getAllPrices(HttpHeaders headers) { HttpEntity requestEntity = new HttpEntity(headers); ResponseEntity<Response> re = restTemplate.exchange( prices, HttpMethod.GET, requestEntity, Response.class); AdminBasicInfoServiceImpl.LOGGER.info("[!!!!GetAllPriceResult] "); return re.getBody(); }  @Override Response getAllContacts(HttpHeaders headers); @Override Response deleteContact(String contactsId, HttpHeaders headers); @Override Response modifyContact(Contacts mci, HttpHeaders headers); @Override Response addContact(Contacts c, HttpHeaders headers); @Override Response getAllStations(HttpHeaders headers); @Override Response addStation(Station s, HttpHeaders headers); @Override Response deleteStation(Station s, HttpHeaders headers); @Override Response modifyStation(Station s, HttpHeaders headers); @Override Response getAllTrains(HttpHeaders headers); @Override Response addTrain(TrainType t, HttpHeaders headers); @Override Response deleteTrain(String id, HttpHeaders headers); @Override Response modifyTrain(TrainType t, HttpHeaders headers); @Override Response getAllConfigs(HttpHeaders headers); @Override Response addConfig(Config c, HttpHeaders headers); @Override Response deleteConfig(String name, HttpHeaders headers); @Override Response modifyConfig(Config c, HttpHeaders headers); @Override Response getAllPrices(HttpHeaders headers); @Override Response addPrice(PriceInfo pi, HttpHeaders headers); @Override Response deletePrice(PriceInfo pi, HttpHeaders headers); @Override Response modifyPrice(PriceInfo pi, HttpHeaders headers);  }### Answer:
@Test public void testGetAllPrices() { Mockito.when(restTemplate.exchange( "http: HttpMethod.GET, requestEntity, Response.class)).thenReturn(re); response = adminBasicInfoService.getAllPrices(headers); Assert.assertEquals(new Response<>(null, null, null), response); }