             migration.enumerate("SwiftStringObject", { oldObj, newObj in
                 XCTFail("No objects to enumerate")
             })
+
+            migration.enumerate("NoSuchClass", {oldObj, newObj in}) // shouldn't throw
         })
 
         // add object

                XCTAssertEqual(oldObj.objectSchema.className, "SwiftStringObject")
                XCTAssertEqual(newObj["stringCol"] as String, "string")
                XCTAssertEqual(oldObj["stringCol"] as String, "string")
                count++
            })
            XCTAssertEqual(count, 1)

        migrateAndTestRealm(Realm.defaultPath, block: { migration, oldSchemaVersion in
            migration.create("SwiftStringObject", withObject:["string"])
            migration.create("SwiftStringObject", withObject:["stringCol": "string"])

            self.assertThrows(migration.create("NoSuchObject", withObject:[]))

            var count = 0
            migration.enumerate("SwiftStringObject", { oldObj, newObj in
