### Question:
TaskController { @GetMapping("/users/{userId}/projects/{projectId}/tasks") public List<TaskDTO> getSprintTasks(@RequestParam Integer sprintId) { return taskService.getTasksDTOByStoryIdWithSprintId(sprintId); }  @GetMapping("/tasks") Iterable<Task> getAllTasks(); @GetMapping("/users/{userId}/projects/{projectId}/tasks") List<TaskDTO> getSprintTasks(@RequestParam Integer sprintId); @PostMapping("/users/{userId}/projects/{projectId}/pbis/{pbiId}/tasks") TaskDTO insertTask(@RequestBody Task newTask, @PathVariable Integer pbiId); @PutMapping("/users/{userId}/projects/{projectId}/pbis/{pbiId}/tasks") TaskDTO updateTask(@RequestBody Task editedTask, @PathVariable Integer pbiId); @DeleteMapping("/users/{userId}/projects/{projectId}/pbis/{pbiId}/tasks/{taskId}") void deleteTask(@PathVariable Integer taskId);  }### Answer:
@WithMockUser("spring") @Test @Order(1) public void getSprintTasks() throws Exception { String url = "/users/2/projects/2/tasks"; mvc.perform( MockMvcRequestBuilders.get(url) .param("sprintId", "1") .accept(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) .andExpect( jsonPath("$.[*].description") .value(containsInAnyOrder("Test Task 1", "Test Task 2"))); }