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