@Test
  public void testSchedule_passThrough() throws Exception {
    final int[] possibleResults = {
      FirebaseJobDispatcher.SCHEDULE_RESULT_SUCCESS,
      FirebaseJobDispatcher.SCHEDULE_RESULT_NO_DRIVER_AVAILABLE,
      FirebaseJobDispatcher.SCHEDULE_RESULT_BAD_SERVICE,
      FirebaseJobDispatcher.SCHEDULE_RESULT_UNKNOWN_ERROR,
      FirebaseJobDispatcher.SCHEDULE_RESULT_UNSUPPORTED_TRIGGER
    };

    for (int result : possibleResults) {
      when(driver.schedule(null)).thenReturn(result);
      assertEquals(result, dispatcher.schedule(null));
    }

    verify(driver, times(possibleResults.length)).schedule(null);
  }
Tests for the {@link FirebaseJobDispatcher} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/FirebaseJobDispatcherTest.java