       for notification in notifications {
         let not:Notification = notification as Notification<T>
         not.hub = nil
+        #if DEBUG
+          NotificationHubMock.onRemoveMockHandler?(name:not.name, sender:not.sender)
+        #endif
+
       }
     }
     

    if(self.hub == nil) { return false }
    
    #if DEBUG
      NotificationHubMock.onPublishMock?(name:self.name,sender:self.sender, userInfo:nil)
    #endif
    self.userInfo = userInfo
    self.closure(self)
    self.userInfo = nil

    self.closure  = handler
    self.sender   = sender
    #if DEBUG
      NotificationHubMock.onSubscribeMockHandler?(name:self.name,sender:self.sender)
    #endif


