### Question:
NotificationsController { @EventListener public void onNoUpdateAvailable(NoUpdateAvailable event) { VBox content = new VBox(3, buildLabel( DefaultI18nContext.getInstance().i18n("You are running the latest version of PDFsam Basic"), NotificationType.INFO)); content.setAlignment(Pos.TOP_RIGHT); container.addNotification(DefaultI18nContext.getInstance().i18n("No update"), content); } @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 onNoUpdateAvailable() { NoUpdateAvailable event = new NoUpdateAvailable(); victim.onNoUpdateAvailable(event); verify(container).addNotification(anyString(), any()); }