MainController { @GetMapping("faq") public String faq() { return "faq"; }  @GetMapping("/") String index(Model model); @GetMapping("faq") String faq(); @GetMapping("findpassword") String findPassword(); @GetMapping({"registerpage", "register"}) String registerPage();  }
@Test public void testFaq() throws Exception { log.info("faq"); MvcResult result = mvc.perform(get("/faq")) .andExpect(status().isOk()) .andExpect(view().name("faq")) .andExpect(content().contentTypeCompatibleWith(MediaType.TEXT_HTML)) .andReturn(); }