private static void assertAppResultEntry(String appId, long startTime, long finishTime, String appName) {
    AppResult result = AppResult.find.byId(appId);
    assertNotNull(appId + " should have been found in yarn_app_result_table", result);
    assertEquals(startTime, result.startTime);
    assertEquals(finishTime, result.finishTime);
    assertEquals("default", result.queueName);
    assertEquals("user", result.username);
    assertEquals(appName, result.name);
    assertEquals(Utils.getJobIdFromApplicationId(appId), result.jobExecId);
    assertEquals("flow_123", result.flowExecId);
    assertEquals("Azkaban", result.scheduler);
    assertEquals(Severity.LOW, result.severity);
    assertEquals(1, result.workflowDepth);
    assertEquals(100, result.score);
  }
Tests backfilling of jobs when Dr.Elephant comes up.
test/com/linkedin/drelephant/BackfillTest.java