### Question:
SimpleSQLHelper extends SQLiteOpenHelper { @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { upgradeTables(db, oldVersion, newVersion); } SimpleSQLHelper(Context context, String fileName, int schemaVersion); void setTableClass(Class<?> tableClass); @Override void onCreate(SQLiteDatabase db); @Override void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion); @Override void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion);  }### Answer:
@Test public void onUpgrade() { mProvider.onUpgrade(mDatabase, 1, 2); verify(mDatabase).execSQL("ALTER TABLE foos ADD COLUMN late FLOAT NOT NULL UNIQUE;"); }
@Test public void onUpgradeEmpty() { mProvider.onUpgrade(mDatabase, 2, 3); verifyNoMoreInteractions(mDatabase); }