### Question:
HelloSpringBoot { @RequestMapping("string") @ResponseStatus(HttpStatus.OK) public String helloString(){ log.trace("trace"); log.debug("debug"); log.warn("warn"); log.info("info"); log.error("error"); return "Hello Spring Boot"; }  @RequestMapping("string") @ResponseStatus(HttpStatus.OK) String helloString(); @RequestMapping(value = "json") Messages helloJson(); @GetMapping(value = "param") Messages param(@RequestParam(value ="username",defaultValue = "Boot") String username); @PostMapping(value = "path/{username}") Messages pathVariable(@PathVariable("username") String username); @PostMapping("body") Messages body(@RequestBody SysUser sysUser); @PostMapping("text") String text(@RequestBody String  text); @PostMapping("form") Messages form(SysUser sysUser);  }### Answer:
@Test @DisplayName("TestString") void testHelloString() throws Exception { this.mvc.perform(get("/hello/string")).andExpect(status().isOk()) .andExpect(content().string("Hello Spring Boot")); }