  @Test
  public void decodeIntentBundle() {

    Bundle bundle = new Bundle();

    ContentUriTrigger uriTrigger = getContentUriTrigger();
    Bundle encode = encodeContentUriJob(uriTrigger, coder);
    bundle.putBundle(GooglePlayJobWriter.REQUEST_PARAM_EXTRAS, encode);

    ArrayList<Uri> uris = new ArrayList<>();
    uris.add(ContactsContract.AUTHORITY_URI);
    uris.add(Media.EXTERNAL_CONTENT_URI);
    bundle.putParcelableArrayList(BundleProtocol.PACKED_PARAM_TRIGGERED_URIS, uris);

    JobInvocation jobInvocation = coder.decodeIntentBundle(bundle);

    assertEquals(uris, jobInvocation.getTriggerReason().getTriggeredContentUris());
    assertEquals("TAG", jobInvocation.getTag());
    assertEquals(uriTrigger.getUris(), ((ContentUriTrigger) jobInvocation.getTrigger()).getUris());
    assertEquals(TestJobService.class.getName(), jobInvocation.getService());
    assertEquals(
        RetryStrategy.DEFAULT_EXPONENTIAL.getPolicy(),
        jobInvocation.getRetryStrategy().getPolicy());
  }