@Test
  public void
      testAreConstraintsSatisfied_anyNetworkRequired_satisfied_includesNonNetworkConstraints() {
    JobInvocation job =
        jobBuilder
            .setConstraints(
                Constraint.uncompact(
                    Constraint.DEVICE_IDLE
                        | Constraint.DEVICE_CHARGING
                        | Constraint.ON_ANY_NETWORK))
            .build();
    shadowNetworkInfo.setConnectionStatus(/* isConnected= */ true);

    assertThat(constraintChecker.areConstraintsSatisfied(job)).isTrue();
  }
Tests for the {@link com.firebase.jobdispatcher.ConstraintChecker} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/ConstraintCheckerTest.java