### Question:
SQLiteWrapper extends SQLDatabase { @Override public long insert(String table, ContentValues initialValues) { return insertWithOnConflict(table, initialValues, CONFLICT_NONE); } SQLiteWrapper(File databaseFile); static SQLiteWrapper open(File databaseFile); SQLiteConnection getConnection(); SQLiteConnection createNewConnection(); @Override void open(); @Override void compactDatabase(); @Override int getVersion(); @Override boolean isOpen(); @Override void beginTransaction(); @Override void endTransaction(); @Override void setTransactionSuccessful(); @Override void close(); @Override void execSQL(String sql); @Override void execSQL(String sql, Object[] bindArgs); @Override int update(String table, ContentValues values, String whereClause, String[] whereArgs); @Override SQLiteCursor rawQuery(String sql, String[] bindArgs); @Override int delete(String table, String whereClause, String[] whereArgs); @Override long insertWithOnConflict(String table, ContentValues initialValues, int conflictAlgorithm); @Override long insert(String table, ContentValues initialValues);  }### Answer:
@Test public void insert() { prepareDatabaseForTesting(); ContentValues cv = new ContentValues(); cv.put("doc_id", 101); cv.put("doc_name", "kaka"); cv.put("balance", "-299.99"); long id = database.insert(doc_table_name, cv); Assert.assertTrue(101 == id); ContentValues cv2 = new ContentValues(); cv2.put("doc_id", 201); cv2.put("doc_name", "kaka"); cv2.put("balance", "-299.99"); long id2 = database.insert(doc_table_name, cv2); Assert.assertTrue(201 == id2); long id3 = database.insert(doc_table_name, cv2); Assert.assertTrue( id3 == -1); }