@Test
  public void onJobFinished_failWithRetryRecurringContentJob_sendResult() {
    JobInvocation jobInvocation =
        receiver.prepareJob(callbackMock, getBundleForContentJobExecutionRecurring());

    receiver.onJobFinished(jobInvocation, JobService.RESULT_FAIL_RETRY);

    // If a job finishes with RESULT_FAIL_RETRY we don't need to send a reschedule request.
    // Rescheduling will erase previously triggered URIs.
    verify(callbackMock).jobFinished(JobService.RESULT_FAIL_RETRY);

    verifyZeroInteractions(driverMock);
  }
The default ShadowMessenger implementation causes NPEs when using the {@link
Messenger#Messenger(Handler)} constructor. We create our own empty Shadow so we can just use
the standard Android implementation, which is totally fine.

@see <a href="https://github.com/robolectric/robolectric/issues/2246">Robolectric issue</a>
jobdispatcher/src/test/java/com/firebase/jobdispatcher/GooglePlayReceiverTest.java