@Test
  public void testAreConstraintsSatisfied_anyNetworkRequired_satisfied() {
    JobInvocation job =
        jobBuilder.setConstraints(Constraint.uncompact(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