@Test
  public void testOnStartCommand_handlesStartJob_noTag() {
    JobService service = spy(new ExampleJobService());
    int startId = 7;

    Intent executeJobIntent = new Intent(JobService.ACTION_EXECUTE);
    Parcel p = Parcel.obtain();
    p.writeStrongBinder(mock(IBinder.class));
    executeJobIntent.putExtra("callback", new PendingCallback(p));

    service.onStartCommand(executeJobIntent, 0, startId);

    verify(service).stopSelf(startId);

    p.recycle();
  }
Tests for the {@link JobService} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/JobServiceTest.java