@Test
  public void testWriteToBundle_contentUriTrigger() {
    ObservedUri observedUri =
        new ObservedUri(ContactsContract.AUTHORITY_URI, Flags.FLAG_NOTIFY_FOR_DESCENDANTS);
    ContentUriTrigger contentUriTrigger = Trigger.contentUriTrigger(Arrays.asList(observedUri));
    Bundle bundle =
        writer.writeToBundle(
            initializeDefaultBuilder().setTrigger(contentUriTrigger).build(), new Bundle());
    Uri[] uris = (Uri[]) bundle.getParcelableArray(BundleProtocol.PACKED_PARAM_CONTENT_URI_ARRAY);
    int[] flags = bundle.getIntArray(BundleProtocol.PACKED_PARAM_CONTENT_URI_FLAGS_ARRAY);
    assertTrue("Array size", uris.length == flags.length && flags.length == 1);
    assertEquals(
        BundleProtocol.PACKED_PARAM_CONTENT_URI_ARRAY, ContactsContract.AUTHORITY_URI, uris[0]);
    assertEquals(
        BundleProtocol.PACKED_PARAM_CONTENT_URI_FLAGS_ARRAY,
        Flags.FLAG_NOTIFY_FOR_DESCENDANTS,
        flags[0]);
  }
Tests for the {@link GooglePlayJobWriter} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/GooglePlayJobWriterTest.java