### Question:
IssueController { @GetMapping("/users/{userId}/projects/{projectId}/pbis/{pbiId}/tasks/{taskId}/issues") public List<Issue> getTaskIssues(@PathVariable Integer taskId) { return issueRepository.findByTask_Id(taskId); }  @GetMapping("/issues") Iterable<Issue> getAllIssues(); @GetMapping("/users/{userId}/projects/{projectId}/pbis/{pbiId}/tasks/{taskId}/issues") List<Issue> getTaskIssues(@PathVariable Integer taskId); @PostMapping("/users/{userId}/projects/{projectId}/pbis/{pbiId}/tasks/{taskId}/issues") Issue insertIssue(@RequestBody Issue newIssue, @PathVariable Integer taskId); @PutMapping("/users/{userId}/projects/{projectId}/pbis/{pbiId}/tasks/{taskId}/issues") Issue updateIssue(@RequestBody Issue editedIssue, @PathVariable Integer taskId); @DeleteMapping( "/users/{userId}/projects/{projectId}/pbis/{pbiId}/tasks/{taskId}/issues/{issueId}") void deleteIssue(@PathVariable Integer issueId);  }### Answer:
@WithMockUser("spring") @Test @Order(1) public void getTaskIssues() throws Exception { String url = "/users/2/projects/2/pbis/2/tasks/1/issues"; mvc.perform(MockMvcRequestBuilders.get(url).accept(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) .andExpect(jsonPath("$.[*].description").value(containsInAnyOrder("Test Issue"))); }