### Question:
BreakpointSQLiteHelper extends SQLiteOpenHelper { @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { if (oldVersion == 1 && newVersion == 2) { db.execSQL("CREATE TABLE IF NOT EXISTS " + RESPONSE_FILENAME_TABLE_NAME + "( " + URL + " VARCHAR NOT NULL PRIMARY KEY, " + FILENAME + " VARCHAR NOT NULL)" ); } if (oldVersion <= 2) { db.execSQL("CREATE TABLE IF NOT EXISTS " + TASK_FILE_DIRTY_TABLE_NAME + "( " + ID + " INTEGER PRIMARY KEY)"); } } BreakpointSQLiteHelper(Context context); @Override void onOpen(SQLiteDatabase db); @Override void onCreate(SQLiteDatabase db); @Override void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion); @Override void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion); void markFileDirty(int id); void markFileClear(int id); List<Integer> loadDirtyFileList(); SparseArray<BreakpointInfo> loadToCache(); HashMap<String, String> loadResponseFilenameToMap(); void updateFilename(@NonNull String url, @NonNull String filename); void insert(@NonNull BreakpointInfo info); void updateBlockIncrease(@NonNull BreakpointInfo info, int blockIndex,
                                    long newCurrentOffset); void updateInfo(@NonNull BreakpointInfo info); void removeInfo(int id); void removeBlock(int breakpointId);  }### Answer:
@Test public void onUpgrade() { helper.onUpgrade(db, 2, 3); verify(db).execSQL("CREATE TABLE IF NOT EXISTS " + TASK_FILE_DIRTY_TABLE_NAME + "( " + ID + " INTEGER PRIMARY KEY)"); }