### Question:
MediaWriter extends BaseDbWriter<Media> { @Override @WorkerThread public void write(Media media, Long lastModified) { mDb.getMediasTable().add(media, lastModified); } @Inject  MediaWriter(Database db); @Override @WorkerThread void write(Media media, Long lastModified);  }### Answer:
@Test public void testEventListWriter() { mWriter.write(mMedia, 0L); SQLiteDatabase db = mDb.getWritableDatabase(); verify(db).insert(Database.TABLE_MEDIAS, null, mMedia.getParams(mGson)); }