@Test
  public void stop_noCallback_finished() throws Exception {
    JobService service = spy(new StoppableJobService(/* shouldReschedule= */ false));
    JobInvocation job =
        new Builder()
            .setTag("Tag")
            .setTrigger(Trigger.NOW)
            .setService(StoppableJobService.class.getName())
            .build();

    IRemoteJobService.Stub.asInterface(service.onBind(null))
        .stop(getJobCoder().encode(job, new Bundle()), true);

    flush(service);

    verify(service, never()).onStopJob(job);
  }
Tests for the {@link JobService} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/JobServiceTest.java