NotificationManager { public void shutdown() { if (scheduledExecutor != null) { scheduledExecutor.shutdownNow(); } } NotificationManager(List<NotificationTask> notificationTasks);  NotificationManager(final List<NotificationServiceFactory> notificationServiceFactories, List<NotificationTask> notificationTasks); void shutdown(); void sendNotifications(List<Notification> notifications); boolean isNotificationFeatureAvailable(); List<String> getLoadedNotificationServices();  }
@Test public void testNotificationManagerNullFactoryClass() { System.clearProperty(NOTIFICATION_PROP_SERVICE_FACTORY_CLASS); NotificationManager notificationManager = getNotificationManager(null); assertNotNull(notificationManager); notificationManager.shutdown(); }
@Test public void testNotificationManagerServiceNull() { NotificationServiceFactory testfact = () -> null; NotificationManager notificationManager = getNotificationManager(testfact); notificationManager.shutdown(); }