### Question:
Migration { final void execute(SQLiteDatabase db) { onPreMigrate(); doMigration(db); onPostMigrate(); }    }### Answer:
@Test public void callbacks() { TestMigration m = new TestMigration(); m.execute(null); assertTrue(m.onPreMigrateCalled); assertTrue(m.doMigrationCalled); assertTrue(m.onPostMigrateCalled); }