### Question:
PriceController { @GetMapping(path = "/prices/welcome") public String home() { return "Welcome to [ Price Service ] !"; }  @GetMapping(path = "/prices/welcome") String home(); @GetMapping(value = "/prices/{routeId}/{trainType}") HttpEntity query(@PathVariable String routeId, @PathVariable String trainType,
                            @RequestHeader HttpHeaders headers); @GetMapping(value = "/prices") HttpEntity queryAll(@RequestHeader HttpHeaders headers); @PostMapping(value = "/prices") HttpEntity<?> create(@RequestBody PriceConfig info,
                                @RequestHeader HttpHeaders headers); @DeleteMapping(value = "/prices") HttpEntity delete(@RequestBody PriceConfig info, @RequestHeader HttpHeaders headers); @PutMapping(value = "/prices") HttpEntity update(@RequestBody PriceConfig info, @RequestHeader HttpHeaders headers);  }### Answer:
@Test public void testHome() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/api/v1/priceservice/prices/welcome")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.content().string("Welcome to [ Price Service ] !")); }