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