### Question:
Travel2Controller { @GetMapping(path = "/welcome") public String home(@RequestHeader HttpHeaders headers) { return "Welcome to [ Travle2 Service ] !"; }  @GetMapping(path = "/welcome") String home(@RequestHeader HttpHeaders headers); @GetMapping(value = "/train_types/{tripId}") HttpEntity getTrainTypeByTripId(@PathVariable String tripId,
                                           @RequestHeader HttpHeaders headers); @GetMapping(value = "/routes/{tripId}") HttpEntity getRouteByTripId(@PathVariable String tripId,
                                       @RequestHeader HttpHeaders headers); @PostMapping(value = "/trips/routes") HttpEntity getTripsByRouteId(@RequestBody ArrayList<String> routeIds,
                                        @RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @PostMapping(value = "/trips") HttpEntity<?> createTrip(@RequestBody TravelInfo routeIds, @RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @GetMapping(value = "/trips/{tripId}") HttpEntity retrieve(@PathVariable String tripId, @RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @PutMapping(value = "/trips") HttpEntity updateTrip(@RequestBody TravelInfo info, @RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @DeleteMapping(value = "/trips/{tripId}") HttpEntity deleteTrip(@PathVariable String tripId, @RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @PostMapping(value = "/trips/left") HttpEntity queryInfo(@RequestBody TripInfo info, @RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @PostMapping(value = "/trip_detail") HttpEntity getTripAllDetailInfo(@RequestBody TripAllDetailInfo gtdi, @RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @GetMapping(value = "/trips") HttpEntity queryAll(@RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @GetMapping(value = "/admin_trip") HttpEntity adminQueryAll(@RequestHeader HttpHeaders headers);  }### Answer:
@Test public void testHome() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/api/v1/travel2service/welcome")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.content().string("Welcome to [ Travle2 Service ] !")); }