### Question:
ConfigController { @GetMapping(path = "/welcome") public String home(@RequestHeader HttpHeaders headers) { return "Welcome to [ Config Service ] !"; }  @GetMapping(path = "/welcome") String home(@RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @GetMapping(value = "/configs") HttpEntity queryAll(@RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @PostMapping(value = "/configs") HttpEntity<?> createConfig(@RequestBody Config info, @RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @PutMapping(value = "/configs") HttpEntity updateConfig(@RequestBody Config info, @RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @DeleteMapping(value = "/configs/{configName}") HttpEntity deleteConfig(@PathVariable String configName, @RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @GetMapping(value = "/configs/{configName}") HttpEntity retrieve(@PathVariable String configName, @RequestHeader HttpHeaders headers);  }### Answer:
@Test public void testHome() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/api/v1/configservice/welcome")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.content().string("Welcome to [ Config Service ] !")); }