HomeController implements ControllerConstants { @GetMapping("/login") public String login(ModelMap model) { try { userContext.getCurrentUser(); } catch (Exception e) { CoreLogger.LOGGER.info("Login Failure " + e.getMessage()); return "app"; } model.clear(); return "app"; }  @GetMapping({"/home", "/"}) String home(User user, @RequestParam(value = "exception", defaultValue = "") String exception,
					   @RequestParam(value = "region", defaultValue = "") String region, ModelMap model,
					   HttpServletResponse response, HttpServletRequest request); @GetMapping("/login") String login(ModelMap model);  }
@Test public void testLogin() { ModelMap model = new ModelMap(); String viewName = homeController.login(model); assertThat(viewName, is("app")); }