@Test
  public void testMustSchedule_unavailable() throws Exception {
    setDriverAvailability(false); // driver is unavailable
    expectedException.expect(FirebaseJobDispatcher.ScheduleFailedException.class);

    dispatcher.mustSchedule(null);
  }
Tests for the {@link FirebaseJobDispatcher} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/FirebaseJobDispatcherTest.java