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

            didPublish = not.publishUserInfo(userInfo)
            not.sender = nil
          }

          else if  not.sender === sender { didPublish = not.publishUserInfo(userInfo) }
        }
      }

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


