MenuController { @RequestMapping(value = "/", method = RequestMethod.GET) public String init() { log.info("initial view"); return "menu/menu"; }  @RequestMapping(value = "/", method = RequestMethod.GET) String init();  }
@Test public void testInit() { MenuController controller = new MenuController(); mockMvc = MockMvcBuilders.standaloneSetup(controller).build(); try { mockMvc.perform(MockMvcRequestBuilders.get("/")).andExpect(view() .name(MENU)); return; } catch (Exception e) { fail(); } }