ErrorController { @RequestMapping(value="/errors/404.html") public String handle404() { return "errorPage"; }  @RequestMapping(value="/errors/404.html") String handle404();  }
@Test public void testHandle404() { ErrorController controller = new ErrorController(); Assert.assertEquals("errorPage", controller.handle404()); }