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

    Intent emptyActionIntent = new Intent("foo.bar.baz");
    service.onStartCommand(emptyActionIntent, 0, startId);

    verify(service).stopSelf(startId);
  }
Tests for the {@link JobService} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/JobServiceTest.java