### Question:
EventTeamAndTeamListWriter extends BaseDbWriter<EventTeamAndTeamListWriter.EventTeamAndTeam> { @Override public void write(EventTeamAndTeam newModels, Long lastModified) { if (newModels == null) { return; } mDb.getWritableDatabase().beginTransaction(); try { mEventTeamListWriter.write(newModels.eventTeams, lastModified); mTeamListWriter.write(newModels.teams, lastModified); mDb.getWritableDatabase().setTransactionSuccessful(); } finally { mDb.getWritableDatabase().endTransaction(); } } @Inject  EventTeamAndTeamListWriter(Database db, EventTeamListWriter etWriter, TeamListWriter teamWriter); @Override void write(EventTeamAndTeam newModels, Long lastModified);  }### Answer:
@Test public void testEventListWriter() { mWriter.write(mData, 0L); verify(mTeamListWriter).write(eq(mData.teams), anyLong()); verify(mEventTeamListWriter).write(eq(mData.eventTeams), anyLong()); }