### Question:
NotificationsController { @EventListener public void onRemoveRequest(RemoveNotificationRequestEvent event) { container.removeNotification(event.notificationId); } @Inject  NotificationsController(NotificationsContainer container, UsageService service, Pdfsam pdfsam,
            UserContext userContext); @EventListener void onAddRequest(AddNotificationRequestEvent event); @EventListener void onTaskFailed(TaskExecutionFailedEvent e); @EventListener void onTaskCompleted(@SuppressWarnings("unused") TaskExecutionCompletedEvent e); @EventListener void onRemoveRequest(RemoveNotificationRequestEvent event); @EventListener void onUpdateAvailable(UpdateAvailableEvent event); @EventListener void onNoUpdateAvailable(NoUpdateAvailable event); @EventListener void onNewImportantNews(NewImportantNewsEvent event);  }### Answer:
@Test public void onRemoveRequest() { RemoveNotificationRequestEvent event = new RemoveNotificationRequestEvent("id"); victim.onRemoveRequest(event); verify(container).removeNotification("id"); }