public void run() {
        populateTestData();
        List<BackfillInfo> infos = BackfillInfo.find.select("*").findList();
        assertEquals(2, infos.size());
        for (BackfillInfo info : infos) {
          if (info.appType.equals("MAPREDUCE")) {
            assertEquals(123456789, info.backfillTs);
          } else if (info.appType.equals("SPARK")) {
            assertEquals(123456779, info.backfillTs);
          } else {
            fail("Unexpected app type retrieved from backfill_info table");
          }
        }

        // Update backfill info.
        BackfillInfo info = BackfillInfo.find.byId("MAPREDUCE");
        long ts = System.currentTimeMillis();
        info.appType = "MAPREDUCE";
        info.backfillTs = ts;
        info.save();
        BackfillInfo infoAfterUpdate = BackfillInfo.find.select("*").
            where().eq("app_type", "MAPREDUCE").findUnique();
        assertEquals(ts, infoAfterUpdate.backfillTs);

        // Insert in backfill info.
        info = BackfillInfo.find.byId("TEZ");
        assertNull(info);
        info = new BackfillInfo();
        info.appType = "TEZ";
        info.backfillTs = ts;
        info.save();
        BackfillInfo infoAfterInsert = BackfillInfo.find.select("*").
            where().eq("app_type", "TEZ").findUnique();
        assertEquals(ts, infoAfterInsert.backfillTs);
      }
Tests backfilling of jobs when Dr.Elephant comes up.
test/com/linkedin/drelephant/BackfillTest.java