   func testDownload_DoubleCancellation() throws
   {
     let deferred: DeferredURLSessionTask<(URL, HTTPURLResponse)> = {
-      let url = URL(string: "http://127.0.0.1:65521/image.jpg")!
       let session = URLSession(configuration: .default)
       defer { session.finishTasksAndInvalidate() }
 
-      return session.deferredDownloadTask(with: url)
+      return session.deferredDownloadTask(with: unavailableURL)
     }()
 
     deferred.urlSessionTask.cancel()


  func testDownload_Cancellation() throws
  {
    let url = URL(string: "http://127.0.0.1:65521/image.jpg")!
    let session = URLSession(configuration: .default)

    let deferred = session.deferredDownloadTask(with: url)
    let canceled = deferred.cancel()
    XCTAssert(canceled)



  func testData_SuspendCancel() throws
  {
    let session = URLSession(configuration: .default)

    let deferred = session.deferredDataTask(with: unavailableURL)
    deferred.urlSessionTask.suspend()
    let canceled = deferred.cancel()
    XCTAssert(canceled)
