private static void flush(JobService jobService) throws Exception {
    flushExecutorService(jobService.backgroundExecutor);
    ShadowLooper.idleMainLooper();
  }
Tests for the {@link JobService} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/JobServiceTest.java