@SuppressWarnings("ConstantConditions")
  @Test
  public void testShouldReplaceCurrent() throws Exception {
    assertTrue(
        "Expected shouldReplaceCurrent() to return value passed in constructor",
        builder.setReplaceCurrent(true).build().shouldReplaceCurrent());
    assertFalse(
        "Expected shouldReplaceCurrent() to return value passed in constructor",
        builder.setReplaceCurrent(false).build().shouldReplaceCurrent());
  }
Tests for the {@link JobInvocation} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/JobInvocationTest.java