### Question:
PBIController { @GetMapping("/users/{userId}/projects/{projectId}/sprintStories") public List<PBI> getProjectSprintStories(@RequestParam Integer sprintId) { return pbiRepository.findBySprint_Id(sprintId); }  @GetMapping("/pbis") Iterable<PBI> getAllPBIs(); @GetMapping("/users/{userId}/projects/{projectId}/pbis") List<PBI> getProjectPBIs(
            @PathVariable Integer projectId,
            @RequestParam Boolean isEpic,
            @RequestParam Optional<Integer> epicId); @PostMapping("/users/{userId}/projects/{projectId}/pbis") PBI insertPBI(@RequestBody PBI newPBI, @PathVariable Integer projectId); @PutMapping("/users/{userId}/projects/{projectId}/pbis") PBI updatePBI(@RequestBody PBI editedPBI); @PutMapping("/users/{userId}/projects/{projectId}/pbis/sprintUpdate") void sprintUpdatePBI(@RequestBody List<SprintStory> sprintPbis); @DeleteMapping("/users/{userId}/projects/{projectId}/pbis/{pbiId}") void deletePBI(@PathVariable Integer pbiId); @GetMapping("/users/{userId}/projects/{projectId}/sprintStories") List<PBI> getProjectSprintStories(@RequestParam Integer sprintId);  }### Answer:
@WithMockUser("spring") @Test @Order(4) public void getProjectSprintStories() throws Exception { String url = "/users/2/projects/2/sprintStories"; mvc.perform( MockMvcRequestBuilders.get(url) .param("sprintId", "1") .accept(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) .andExpect(jsonPath("$.[*].title").value(containsInAnyOrder("Test Story 1"))); }