### Question:
BreakpointSQLiteHelper extends SQLiteOpenHelper { @Override public void onCreate(SQLiteDatabase db) { db.execSQL("CREATE TABLE IF NOT EXISTS " + BREAKPOINT_TABLE_NAME + "( " + ID + " INTEGER PRIMARY KEY, " + URL + " VARCHAR NOT NULL, " + ETAG + " VARCHAR, " + PARENT_PATH + " VARCHAR NOT NULL, " + FILENAME + " VARCHAR, " + TASK_ONLY_PARENT_PATH + " TINYINT(1) DEFAULT 0, " + CHUNKED + " TINYINT(1) DEFAULT 0)" ); db.execSQL("CREATE TABLE IF NOT EXISTS " + BLOCK_TABLE_NAME + "( " + ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " + HOST_ID + " INTEGER, " + BLOCK_INDEX + " INTEGER, " + START_OFFSET + " INTEGER, " + CONTENT_LENGTH + " INTEGER, " + CURRENT_OFFSET + " INTEGER)" ); db.execSQL("CREATE TABLE IF NOT EXISTS " + RESPONSE_FILENAME_TABLE_NAME + "( " + URL + " VARCHAR NOT NULL PRIMARY KEY, " + FILENAME + " VARCHAR NOT NULL)" ); 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 onCreate() { helper.onCreate(db); ArgumentCaptor<String> captor = ArgumentCaptor.forClass(String.class); verify(db, times(4)).execSQL(captor.capture()); List<String> values = captor.getAllValues(); assertThat(values.size()).isEqualTo(4); assertThat(values.get(3)).isEqualTo("CREATE TABLE IF NOT EXISTS " + TASK_FILE_DIRTY_TABLE_NAME + "( " + ID + " INTEGER PRIMARY KEY)"); }