             }
         }
 
-        let source = center.sourceForNotification("TestNotification")
+        let source = center.sourceForNotification(testNotification)
 
         let c1 = source.connect(block(0))
         let c2 = source.connect(block(1))

        // The notification center supports reentrancy but it is synchronous, just like KVO - except it doesn't force "latest" values

        var s = ""
        let observer = center.addObserver(forName: "TestNotification" as NSNotification.Name, object: nil, queue: nil) { notification in
            let value = (notification as NSNotification).userInfo!["Value"] as! Int
            s += " (\(value)"
            if value > 0 {

    center.post(name: Notification.Name(rawValue: name), object: nil, userInfo: ["Value": value])
}

let testNotification = NSNotification.Name("TestNotification")

class NotificationCenterSupportTests: XCTestCase {

    func testSimpleNotification() {
        var r = [Int]()

        post(1)
        let c = center.sourceForNotification(testNotification).connect { notification in
            r.append((notification as NSNotification).userInfo!["Value"] as! Int)
        }

