   func testPostDefaultNotificationWithSender() {
     var expectation = self.expectationWithDescription(self.notificationName)
 
-    NotificationHubDefault.addObserverForName(self.notificationName, sender: self) { notification in
+    self.hub.addObserverForName(self.notificationName, sender: self) { notification in
       XCTAssertNotNil(notification)
       XCTAssertEqual(self.notificationName, notification.name)
       XCTAssertNotNil(notification.sender)



class NotificationTests: XCTestCase {
  let hub = NotificationHubDefault
  let notificationName = "notificationName"
  var notificationUserInfo = [String:Any]()
  override func setUp() {
    super.setUp()
    self.notificationUserInfo["key"] = 5

  }
    
  override func tearDown() {

  func testPostDefaultNotification() {
    var expectation = self.expectationWithDescription(self.notificationName)
    
    let notification = self.hub.addObserverForName(self.notificationName, sender: self) { notification in
      XCTAssertNotNil(notification)
      XCTAssertEqual(self.notificationName, notification.name)
      XCTAssertNotNil(notification.sender)
