### Question:
PaymentController { @GetMapping(path = "/welcome") public String home() { return "Welcome to [ Payment Service ] !"; }  @GetMapping(path = "/welcome") String home(); @PostMapping(path = "/payment") HttpEntity pay(@RequestBody Payment info, @RequestHeader HttpHeaders headers); @PostMapping(path = "/payment/money") HttpEntity addMoney(@RequestBody Payment info, @RequestHeader HttpHeaders headers); @GetMapping(path = "/payment") HttpEntity query(@RequestHeader HttpHeaders headers);  }### Answer:
@Test public void testHome() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/api/v1/paymentservice/welcome")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.content().string("Welcome to [ Payment Service ] !")); }