### Question:
BreakpointSQLiteHelper extends SQLiteOpenHelper { public void updateBlockIncrease(@NonNull BreakpointInfo info, int blockIndex, long newCurrentOffset) { final ContentValues values = new ContentValues(); values.put(CURRENT_OFFSET, newCurrentOffset); getWritableDatabase().update(BLOCK_TABLE_NAME, values, HOST_ID + " = ? AND " + BLOCK_INDEX + " = ?", new String[]{Integer.toString(info.id), Integer.toString(blockIndex)}); } 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 updateBlockIncrease() { assertThat(insertedInfo2.getBlock(1).getCurrentOffset()).isEqualTo(10); helper.updateBlockIncrease(insertedInfo2, 1, 15); BreakpointInfo info2 = helper.loadToCache().get(insertedInfo2.id); assertThat(info2.getBlock(1).getCurrentOffset()).isEqualTo(15); }