@Test
  public void immediateTrigger_withNetworkConstraint_shouldNotRunInAirplaneMode() throws Exception {
    verifyJobDoesntRunInAirplaneMode(
        dispatcher
            .newJobBuilder()
            .setService(TestJobService.class)
            .setTrigger(Trigger.NOW)
            .addConstraint(Constraint.ON_ANY_NETWORK)
            .setTag("basic-immediate-job")
            .build());
  }
How long we're willing to wait for a job to run after it becomes eligible.
jobdispatcher/src/androidTest/java/com/firebase/jobdispatcher/AirplaneModeAndroidTest.java