static void assertTriggersEqual(JobTrigger inTrigger, JobTrigger outTrigger) {
    assertEquals("", inTrigger.getClass(), outTrigger.getClass());

    if (inTrigger instanceof JobTrigger.ExecutionWindowTrigger) {
      assertEquals(
          "getTrigger().getWindowStart()",
          ((JobTrigger.ExecutionWindowTrigger) inTrigger).getWindowStart(),
          ((JobTrigger.ExecutionWindowTrigger) outTrigger).getWindowStart());
      assertEquals(
          "getTrigger().getWindowEnd()",
          ((JobTrigger.ExecutionWindowTrigger) inTrigger).getWindowEnd(),
          ((JobTrigger.ExecutionWindowTrigger) outTrigger).getWindowEnd());
    } else if (inTrigger == Trigger.NOW) {
      assertEquals(inTrigger, outTrigger);
    } else if (inTrigger instanceof JobTrigger.ContentUriTrigger) {
      assertEquals(
          "Collection of URIs",
          ((ContentUriTrigger) inTrigger).getUris(),
          ((ContentUriTrigger) outTrigger).getUris());
    } else {
      fail("Unknown Trigger class: " + inTrigger.getClass());
    }
  }
Provides common utilities helpful for testing.
jobdispatcher/src/testLib/com/firebase/jobdispatcher/TestUtil.java