/**
   * Test method for {@link org.sagar.samples.controller.spring.HomeController#home()}.
   *
   * @throws Exception
   */
  @Test
  public void testHome() throws Exception {
    System.out.println("excecuting test method 1");
    HomeController homeController = new HomeController();
    ModelAndView mnv = homeController.home();
    assertEquals(mnv.getViewName(), "home");
    assertEquals((String) mnv.getModel().get("name"), "Sagar Prasad");

    // ------------MVC TESTING------------------//
    mockMvc
        .perform(MockMvcRequestBuilders.get("/home").accept(MediaType.APPLICATION_XML))
        .andExpect(MockMvcResultMatchers.status().isOk())
        .andDo(print());
    ;
  }