### Question:
SprintController { @GetMapping("/users/{userId}/projects/{projectId}/sprints") public List<Sprint> getProjectSprints(@PathVariable Integer projectId) { return sprintRepository.findByProject_IdOrderByDeadlineDateDesc(projectId); }  @GetMapping("/sprints") Iterable<Sprint> getAllSprints(); @GetMapping("/users/{userId}/projects/{projectId}/sprints") List<Sprint> getProjectSprints(@PathVariable Integer projectId); @PostMapping("/users/{userId}/projects/{projectId}/sprints") Sprint insertSprint(@RequestBody Sprint newSprint, @PathVariable Integer projectId); @GetMapping("/users/{userId}/projects/{projectId}/sprints/{sprintId}") Sprint getSprint(@PathVariable Integer sprintId); @PutMapping("/users/{userId}/projects/{projectId}/sprints/{sprintId}") Sprint updateSprint(@RequestBody Sprint editedSprint, @PathVariable Integer sprintId); @PutMapping("/users/{userId}/projects/{projectId}/sprints/{sprintId}/makeSprintCurrent") Sprint updateSprintToCurrent(
            @RequestBody Sprint editedSprint,
            @PathVariable Integer projectId,
            @PathVariable Integer sprintId); @DeleteMapping("/users/{userId}/projects/{projectId}/sprints/{sprintId}") void deleteSprint(@PathVariable Integer projectId, @PathVariable Integer sprintId);  }### Answer:
@WithMockUser("spring") @Test @Order(1) public void getProjectSprints() throws Exception { String url = "/users/2/projects/2/sprints"; mvc.perform(MockMvcRequestBuilders.get(url).accept(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) .andExpect(jsonPath("$.[*].goal").value(containsInAnyOrder("testing"))) .andExpect(jsonPath("$.[0].plan").value("Test Sprint")) .andExpect(jsonPath("$.[0].isCurrent").value(true)); }