### Question:
SecurityController { @GetMapping(value = "/welcome") public String home(@RequestHeader HttpHeaders headers) { return "welcome to [Security Service]"; }  @GetMapping(value = "/welcome") String home(@RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @GetMapping(path = "/securityConfigs") HttpEntity findAllSecurityConfig(@RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @PostMapping(path = "/securityConfigs") HttpEntity create(@RequestBody SecurityConfig info, @RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @PutMapping(path = "/securityConfigs") HttpEntity update(@RequestBody SecurityConfig info, @RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @DeleteMapping(path = "/securityConfigs/{id}") HttpEntity delete(@PathVariable String id, @RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @GetMapping(path = "/securityConfigs/{accountId}") HttpEntity check(@PathVariable String accountId, @RequestHeader HttpHeaders headers);  }### Answer:
@Test public void testHome() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/api/v1/securityservice/welcome")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.content().string("welcome to [Security Service]")); }