       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 DEBUG
public struct NotificationHubMock {
  private static var onPublishingMockHandler:((name:String, sender:AnyObject?, userInfo:Any?) -> Void)?
  private static var onSubscribeMock:((name:String, sender:AnyObject?) -> Void)?
  private static var onRemovingMockHandler:((name:String, sender:AnyObject?) -> Void)?
  
  static func onPublishingMockHandler(handler:(name:String, sender:AnyObject?, userInfo:Any?) -> Void)  {
    self.onPublishingMockHandler = handler
  }
  static func onSubscribeMock(handler:(name:String, sender:AnyObject?) -> Void)  {
    self.onSubscribeMock = handler
  }
  static func onRemovingMockHandler(handler:(name:String, sender:AnyObject?) -> Void)  {
    self.onRemovingMockHandler = handler
  }

  }

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