### Question:
GreetingController { @GetMapping(path = "/greeting", produces = {MediaType.TEXT_PLAIN_VALUE}) @ResponseBody public ResponseEntity<String> greeting() { return new ResponseEntity<>("Hello, World!", HttpStatus.OK); }  @GetMapping(path = "/greeting", produces = {MediaType.TEXT_PLAIN_VALUE}) @ResponseBody ResponseEntity<String> greeting();  }### Answer:
@Test public void greetingTest() throws Exception { this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build(); this.mockMvc.perform(get("/greeting") .accept(MediaType.ALL)) .andExpect(status().isOk()) ; }