@Test
  public void testCancel_sendsAppropriateBroadcast() {
    dispatcher.cancel("foobar");

    ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class);
    verify(mMockContext).sendBroadcast(captor.capture());

    Intent broadcast = captor.getValue();

    assertNotNull(broadcast);
    assertEquals("foobar", broadcast.getStringExtra("tag"));
  }
Tests for the {@link GooglePlayDriver} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/GooglePlayDriverTest.java