### Question:
EventListWriter extends BaseDbWriter<List<Event>> { @Inject public EventListWriter(Database db) { super(db); } @Inject  EventListWriter(Database db); @Override @WorkerThread void write(List<Event> events, Long lastModified);  }### Answer:
@Test public void testEventListWriter() { mWriter.write(mEvents, 0L); SQLiteDatabase db = mDb.getWritableDatabase(); for (Event event : mEvents) { verify(db).insert(Database.TABLE_EVENTS, null, event.getParams(mGson)); } }