source: class UserControllerTest {
  
      @Autowired
      private MockMvc mockMvc;
      @Autowired
      private UserService userService;
      @Autowired
      private ObjectMapper objectMapper;
  
      @Test
      public void getUserList() throws Exception {
  
target:         mockMvc.perform(get("/users"))
                  .andExpect(view().name("userList"))
                  .andExpect(status().isOk())
                  .andDo(print());
      }
  
  }