### Question:
NotificationController { @DeleteMapping("/users/{userId}/notifications/{notificationId}") @ResponseStatus(HttpStatus.ACCEPTED) public void deleteNotification(@PathVariable Integer notificationId) { notificationRepository.deleteById(notificationId); }  @GetMapping("/notifications") Iterable<Notification> getAllNotifications(); @GetMapping("/users/{userId}/notifications") List<Notification> getUserNotifications(@PathVariable Integer userId); @PostMapping("/users/{userId}/notifications") void insertNotification(
            @RequestBody Notification newNotification, @PathVariable Integer userId); @DeleteMapping("/users/{userId}/notifications/{notificationId}") @ResponseStatus(HttpStatus.ACCEPTED) void deleteNotification(@PathVariable Integer notificationId);  }### Answer:
@WithMockUser("spring") @Test @Order(3) public void deleteNotification() throws Exception { String url = "/users/1/notifications/1"; mvc.perform(MockMvcRequestBuilders.delete(url)).andExpect(status().isAccepted()); }