@Test
  public void onUnbind_removesUsedCallbacks_withBackgroundWork() throws Exception {
    verifyOnUnbindCausesResult(
        new JobService() {
          @Override
          public boolean onStartJob(@NonNull JobParameters job) {
            return true; // More work to do in background
          }

          @Override
          public boolean onStopJob(@NonNull JobParameters job) {
            return true; // Still doing background work
          }
        },
        JobService.RESULT_FAIL_RETRY);
  }
Tests for the {@link JobService} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/JobServiceTest.java