### Question:
DistrictListWriter extends BaseDbWriter<List<District>> { @Inject public DistrictListWriter(Database db) { super(db); } @Inject  DistrictListWriter(Database db); @Override @WorkerThread void write(List<District> districts, Long lastModified);  }### Answer:
@Test public void testDistrictListWriter() { mWriter.write(mDistricts, 0L); SQLiteDatabase db = mDb.getWritableDatabase(); for (District district : mDistricts) { verify(db).insert(Database.TABLE_DISTRICTS, null, district.getParams(mGson)); } }