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