@Test
  public void testCancelJobs_backendUnavailable() throws Exception {
    markBackendUnavailable();

    assertEquals(
        "Expected cancelAll() request to fail when backend is unavailable",
        FirebaseJobDispatcher.CANCEL_RESULT_NO_DRIVER_AVAILABLE,
        dispatcher.cancelAll());
  }
Tests for the {@link GooglePlayDriver} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/GooglePlayDriverTest.java