04.06.2015 - Given the code you have, there is no need to mock. A sample test case would look like below: ModelAndView mvw = displayLogin("error", null, .