### Question:
TrainFoodController { @GetMapping(path = "/trainfoods/welcome") public String home() { return "Welcome to [ Train Food Service ] !"; }  @GetMapping(path = "/trainfoods/welcome") String home(); @CrossOrigin(origins = "*") @GetMapping("/trainfoods") HttpEntity getAllTrainFood(@RequestHeader HttpHeaders headers); @CrossOrigin(origins = "*") @GetMapping("/trainfoods/{tripId}") HttpEntity getTrainFoodOfTrip(@PathVariable String tripId, @RequestHeader HttpHeaders headers);  }### Answer:
@Test public void testHome() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/api/v1/foodmapservice/trainfoods/welcome")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.content().string("Welcome to [ Train Food Service ] !")); }