         let capturingHomepageHandler = CapturingInkbunnyHomepageHandler()
         inkbunnyAPI.loadHomepage(completionHandler: capturingHomepageHandler.verify)
 
-        XCTAssertEqual(false, journallingNetworkAdapter.getURLs.last?.absoluteString.contains("api_search.php"))
+        XCTAssertFalse(journallingNetworkAdapter.lastGetURLSatisfies({ $0.absoluteString.contains("api_search.php") }))
     }
 
 }

        let capturingHomepageHandler = CapturingInkbunnyHomepageHandler()
        inkbunnyAPI.loadHomepage(completionHandler: capturingHomepageHandler.verify)

        XCTAssertEqual(true, journallingNetworkAdapter.getURLs.last?.absoluteString.contains(expectedSearchEndpoint.absoluteString))
    }

    func testLoginRequestReturnsValidResponseDoesNotNotifyHandlerAboutFailure() {

        networkAdapter.get(url, completionHandler: completionHandler)
    }

    func lastGetURLSatisfies(_ predicate: (URL) -> Bool) -> Bool {
        guard let url = getURLs.last else { return false }
        return predicate(url)
    }

}

class InkbunnyAPITests: XCTestCase {
