### Question:
ConsignPriceController { @GetMapping(path = "/welcome") public String home(@RequestHeader HttpHeaders headers) { return "Welcome to [ ConsignPrice Service ] !"; }  @GetMapping(path = "/welcome") String home(@RequestHeader HttpHeaders headers); @GetMapping(value = "/consignprice/{weight}/{isWithinRegion}") HttpEntity getPriceByWeightAndRegion(@PathVariable String weight, @PathVariable String isWithinRegion,
                                                @RequestHeader HttpHeaders headers); @GetMapping(value = "/consignprice/price") HttpEntity getPriceInfo(@RequestHeader HttpHeaders headers); @GetMapping(value = "/consignprice/config") HttpEntity getPriceConfig(@RequestHeader HttpHeaders headers); @PostMapping(value = "/consignprice") HttpEntity modifyPriceConfig(@RequestBody ConsignPrice priceConfig,
                                        @RequestHeader HttpHeaders headers);  }### Answer:
@Test public void testHome() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/api/v1/consignpriceservice/welcome")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.content().string("Welcome to [ ConsignPrice Service ] !")); }