         XCTAssertTrue(fileManager.createFileAtPath(filePath, contents: data, attributes: nil), "Creating cache data failed")
     }
 
-    private func cachedDataExistsWithKey(key: String) -> Bool {
+    private func cachedDataExistsForKey(key: String) -> Bool {
         let filePath = diskCache.path.stringByAppendingPathComponent(key)
 
         return fileManager.fileExistsAtPath(filePath)

        
        waitForExpectationsWithTimeout(expectationTimeout, handler: nil)
        
        XCTAssertFalse(cachedDataExistsWithKey(keyThatShouldBeRemoved), "Cached data shouldn't exist anymore")
        XCTAssertTrue(cachedDataExistsWithKey(keyThatShouldntBeRemoved), "Cached data shouldn't be removed")
    }
}



        waitForExpectationsWithTimeout(expectationTimeout, handler: nil)

        XCTAssertFalse(cachedDataExistsForKey(key), "Cached data shouldn't exist anymore")
    }
    
    func testRemoveDataForKeyRemovesOnlyCachedDataForKey() {
