     /// Dummy Model implementation for testing.
     final class DummyModel: Entity {
         var exists: Bool = false
-        static var entity: String {
-            return "dummy_models"
-        }
-        var wasModified: Bool = false
+        var wasModifiedOnCreate: Bool = false
+        var wasModifiedOnUpdate: Bool = false
 
         static func prepare(_ database: Database) throws {}
         static func revert(_ database: Database) throws {}

        }
        
        func willCreate() {
            wasModified = true
        }
    }

    static let allTests = [
        ("testCallbacksCanMutateProperties", testCallbacksCanMutateProperties)
    ]

    override func setUp() {


    var database: Database!

    func testCreateCallbacksCanMutateProperties() {
        var result = DummyModel()
        XCTAssertFalse(result.wasModifiedOnCreate, "Result should not have been modified yet")
        
        try? result.save()
        XCTAssertTrue(result.wasModifiedOnCreate, "Result should have been modified by now")
    }
    
    func testUpdateCallbacksCanMutateProperties() {
        var result = DummyModel()
        XCTAssertFalse(result.wasModifiedOnUpdate, "Result should not have been modified yet")
        
        try? result.save()
        XCTAssertFalse(result.wasModifiedOnUpdate, "Result should not have been modified yet")
        
        // Save the object once more to trigger the update callback
        try? result.save()
        XCTAssertTrue(result.wasModifiedOnUpdate, "Result should have been modified by now")
    }
}
