@Override
    public boolean onStopJob(@NonNull JobParameters job) {
      numberOfStopRequestsReceived.incrementAndGet();
      return shouldReschedule;
    }
A JobService that allows customizing the onStopJob result.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/JobServiceTest.java