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