### Question:
WelcomeController { @GetMapping("/") public String welcome() { return "welcome"; }  @GetMapping("/") String welcome();  }### Answer:
@Test void welcome() throws Exception { mockMvc.perform(get("/")) .andDo(print()) .andExpect(status().isOk()) .andExpect(view().name("welcome")) ; }