         self.waitForExpectationsWithTimeout(1) { timeoutError in
             XCTAssertNil(timeoutError)
             
-            XCTAssertEqual(delegate.dataKeyedByTask[task1.taskIdentifier], body1)
-            XCTAssertEqual(delegate.dataKeyedByTask[task2.taskIdentifier], body2)
+            XCTAssertEqual(delegate.dataKeyedByTaskIdentifier[task1.taskIdentifier], body1)
+            XCTAssertEqual(delegate.dataKeyedByTaskIdentifier[task2.taskIdentifier], body2)
         }
     }
     

        self.waitForExpectationsWithTimeout(1) { timeoutError in
            XCTAssertNil(timeoutError)
            
            XCTAssertEqual(delegate.dataKeyedByTask[task1.taskIdentifier], body)
            XCTAssertEqual(delegate.dataKeyedByTask[task2.taskIdentifier], body)
            XCTAssertEqual(delegate.dataKeyedByTask[task3.taskIdentifier], body)
        }
    }
    

            XCTAssertNil(timeoutError)

            // Sanity it's actually mocked
            XCTAssertEqual(delegate.dataKeyedByTaskIdentifier[task1.taskIdentifier], body)
            
            // Check the delay
            let interval = -start.timeIntervalSinceNow
