### Question:
SprintController { @PostMapping("/users/{userId}/projects/{projectId}/sprints") public Sprint insertSprint(@RequestBody Sprint newSprint, @PathVariable Integer projectId) throws Exception { return sprintService.createSprint(newSprint, 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(2) public void insertSprint() throws Exception { String url = "/users/2/projects/2/sprints"; Date date = new Date(System.currentTimeMillis()); Sprint newSprint = new Sprint(date, "test", "springSprint", true); String json = mapper.writeValueAsString(newSprint); mvc.perform( MockMvcRequestBuilders.post(url) .content(json) .contentType(MediaType.APPLICATION_JSON) .accept(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) .andExpect(jsonPath("$.goal").value("test")) .andExpect(jsonPath("$.plan").value("springSprint")) .andExpect(jsonPath("$.isCurrent").value(true)) .andExpect(jsonPath("$.numSprint").value(2)); }