### Question:
EmployeeController { @GetMapping public ResponseEntity<List<EmployeeResult>> listAll() { return ResponseEntity.ok(employeeService.findEmployee()); } @Autowired  EmployeeController(EmployeeService employeeService); @GetMapping ResponseEntity<List<EmployeeResult>> listAll();  }### Answer:
@Test public void listAll() throws Exception { mockMvc .perform(get("/emp") .accept(MediaType.APPLICATION_JSON_UTF8) ) .andExpect(status().isOk()) .andExpect(jsonPath("$[1].name").exists()) .andDo(print()); }