### Question:
ConsignPriceServiceImpl implements ConsignPriceService { @Override public Response getPriceConfig(HttpHeaders headers) { return new Response<>(1, success, repository.findByIndex(0)); }  @Override Response getPriceByWeightAndRegion(double weight, boolean isWithinRegion, HttpHeaders headers); @Override Response queryPriceInformation(HttpHeaders headers); @Override Response createAndModifyPrice(ConsignPrice config, HttpHeaders headers); @Override Response getPriceConfig(HttpHeaders headers);  }### Answer:
@Test public void testGetPriceConfig() { ConsignPrice config = new ConsignPrice(); Mockito.when(repository.findByIndex(0)).thenReturn(config); Response result = consignPriceServiceImpl.getPriceConfig(headers); Assert.assertEquals(new Response<>(1, "Success", config), result); }