         XCTAssert(db.document(withID: docID)!.toDictionary() == remoteData)
         
         // RESOLVE WITH LOCAL with BLOB data
-        blob = Blob(contentType: "text/plain", data: content)
-        localData = ["key1": "value1", "blob": blob]
-        remoteData = ["key2": "value2"]
         try makeConflict(forID: docID, withLocal: localData, withRemote: remoteData)
         resolver = TestConflictResolver() { (conflict) -> Document? in
             return conflict.localDocument

        run(config: config, expectedError: nil)
        
        // Now make different changes in db and otherDBs
        let doc1a = db.document(withID: docID)!.toMutable()
        doc1a.setData(localData)
        try saveDocument(doc1a)
        
        let doc1b = otherDB.document(withID: docID)!.toMutable()
        doc1b.setData(remoteData)
        try otherDB.saveDocument(doc1b)
    }
    
    func testConflictHandlerRemoteWins() throws {
        let doc = MutableDocument(id: "doc")
        doc.setString("Tiger", forKey: "species")
        try db.saveDocument(doc)
        
        let target = DatabaseEndpoint(database: otherDB)
        var config = self.config(target: target, type: .push, continuous: false)
        run(config: config, expectedError: nil)
        
        // make changes to both documents from db and otherDB
        let doc1 = db.document(withID: "doc")!.toMutable()
        doc1.setString("Hobbes", forKey: "name")
        try db.saveDocument(doc1)
        
        let doc2 = otherDB.document(withID: "doc")!.toMutable()
        doc2.setString("striped", forKey: "pattern")
        try otherDB.saveDocument(doc2)
        
        // Pull:
        config = self.config(target: target, type: .pull, continuous: false)
        let resolver = TestConflictResolver() { (conflict) -> Document? in
            return conflict.remoteDocument
        }

        XCTAssertNil(db.document(withID: "doc"))
    }
    
    func testConflictResolverDeletedRemoteWins() throws {
        let localData = ["key1": "value1"]
        try makeConflict(forID: "doc", withLocal: localData, withRemote: nil)
        
        let config = getConfig(.pull)
        let resolver = TestConflictResolver() { (conflict) -> Document? in
            XCTAssertNotNil(conflict.localDocument)
            XCTAssertNil(conflict.remoteDocument)
            return nil
        }
        config.conflictResolver = resolver
