### Question:
TeamMemberController { @PostMapping("/users/{userId}/projects/{projectId}/members") public void insertNewMemberIntoProject( @RequestBody String role, @PathVariable Integer userId, @PathVariable Integer projectId) throws Exception { teamMemberService.addMemberIntoProject(role, userId, projectId); }  @GetMapping("/users/{userId}/projects/{projectId}/members") List<TeamMember> getProjectMembers(
            @PathVariable Integer userId, @PathVariable Integer projectId); @PostMapping("/users/{userId}/projects/{projectId}/members") void insertNewMemberIntoProject(
            @RequestBody String role, @PathVariable Integer userId, @PathVariable Integer projectId); @DeleteMapping("/users/{userId}/projects/{projectId}/members") void deleteTeamMember(@PathVariable Integer userId, @PathVariable Integer projectId);  }### Answer:
@WithMockUser("spring") @Test public void insertNewMemberIntoProject() throws Exception { String url = "/users/1/projects/2/members"; String json = "Product Owner"; mvc.perform( MockMvcRequestBuilders.post(url) .content(json) .contentType(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()); }