@Test
  public void testCancelAllJobs_unavailable() throws Exception {
    setDriverAvailability(false); // driver is unavailable

    assertEquals(FirebaseJobDispatcher.CANCEL_RESULT_NO_DRIVER_AVAILABLE, dispatcher.cancelAll());

    verify(driver, never()).cancelAll();
  }
Tests for the {@link FirebaseJobDispatcher} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/FirebaseJobDispatcherTest.java