@Test
public void testGenerateAndSendPostPutMembershipNotificationNullNotificationSvc() {

    DBService dbsvc = Mockito.mock(DBService.class);
    Mockito.when(dbsvc.getPendingMembershipApproverRoles(1)).thenReturn(Collections.emptySet());
    NotificationServiceFactory testfact = () -> null;
    NotificationService mockNotificationService =  Mockito.mock(NotificationService.class);
    NotificationManager notificationManager = getNotificationManager(dbsvc, testfact);
    notificationManager.shutdown();
    Role notifyRole = new Role().setAuditEnabled(false).setSelfServe(false);
    List<Notification> notifications = new PutRoleMembershipNotificationTask("testdomain1", "neworg", notifyRole, null, dbsvc, USER_DOMAIN_PREFIX).getNotifications();
    notificationManager.sendNotifications(notifications);
    verify(mockNotificationService, never()).notify(any(Notification.class));
}