This step is very similar to the previous flow. We instantiate Mock MVC with BasicModelMapController:
this.mockMvc = MockMvcBuilders.standaloneSetup (new BasicModelMapController()) .setViewResolvers(viewResolver()).build();