@Test
  public void testAreConstraintsSatisfied_nonNetworkConstraints() {
    JobInvocation job =
        jobBuilder
            .setConstraints(
                Constraint.uncompact(Constraint.DEVICE_IDLE | Constraint.DEVICE_CHARGING))
            .build();
    assertThat(constraintChecker.areConstraintsSatisfied(job)).isTrue();
  }
Tests for the {@link com.firebase.jobdispatcher.ConstraintChecker} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/ConstraintCheckerTest.java