static void assertJobsEqual(JobParameters input, JobParameters output) {
    assertNotNull("input", input);
    assertNotNull("output", output);

    assertEquals("isRecurring()", input.isRecurring(), output.isRecurring());
    assertEquals(
        "shouldReplaceCurrent()", input.shouldReplaceCurrent(), output.shouldReplaceCurrent());
    assertEquals("getLifetime()", input.getLifetime(), output.getLifetime());
    assertEquals("getTag()", input.getTag(), output.getTag());
    assertEquals("getService()", input.getService(), output.getService());
    assertEquals(
        "getConstraints()",
        Constraint.compact(input.getConstraints()),
        Constraint.compact(output.getConstraints()));

    assertTriggersEqual(input.getTrigger(), output.getTrigger());
    assertBundlesEqual(input.getExtras(), output.getExtras());
    assertRetryStrategiesEqual(input.getRetryStrategy(), output.getRetryStrategy());
  }
Provides common utilities helpful for testing.
jobdispatcher/src/testLib/com/firebase/jobdispatcher/TestUtil.java