@Test
  public void encode_contentUriTrigger() {
    Bundle encode = TestUtil.encodeContentUriJob(TestUtil.getContentUriTrigger(), coder);
    int triggerType = encode.getInt(PREFIX + BundleProtocol.PACKED_PARAM_TRIGGER_TYPE);
    assertEquals("Trigger type", BundleProtocol.TRIGGER_TYPE_CONTENT_URI, triggerType);

    String json = encode.getString(PREFIX + BundleProtocol.PACKED_PARAM_OBSERVED_URI);
    String expectedJson =
        "{\"uri_flags\":[1,0],\"uris\":[\"content:\\/\\/com.android.contacts"
            + "\",\"content:\\/\\/media\\/external\\/images\\/media\"]}";
    assertEquals("Json trigger", expectedJson, json);
  }
Tests for the {@link JobCoder} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/JobCoderTest.java