### Question:
TicketInfoController { @GetMapping(path = "/welcome") public String home() { return "Welcome to [ TicketInfo Service ] !"; }  @GetMapping(path = "/welcome") String home(); @PostMapping(value = "/ticketinfo") HttpEntity queryForTravel(@RequestBody Travel info, @RequestHeader HttpHeaders headers); @GetMapping(value = "/ticketinfo/{name}") HttpEntity queryForStationId(@PathVariable String name, @RequestHeader HttpHeaders headers);  }### Answer:
@Test public void testHome() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/api/v1/ticketinfoservice/welcome")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.content().string("Welcome to [ TicketInfo Service ] !")); }