class HomeController {

    @RequestMapping("/home")
    public String home() {
        return "home";
    }

}

class HomeControllerTest {

    @Test
    public void home_should_return_homeview() throws Exception {

        assertThat( new HomeController().home(), equalTo("home") );
    }

}