@Before
  public void setUp() {
    MockitoAnnotations.initMocks(this);
    context = RuntimeEnvironment.application;
    constraintChecker = new ConstraintChecker(context);
    jobBuilder =
        new JobInvocation.Builder().setTag(JOB_TAG).setService(JOB_SERVICE).setTrigger(Trigger.NOW);

    ConnectivityManager connectivityManager =
        (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
    shadowConnectivityManager = shadowOf(connectivityManager);
    shadowNetworkInfo = shadowOf(connectivityManager.getActiveNetworkInfo());
  }
Tests for the {@link com.firebase.jobdispatcher.ConstraintChecker} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/ConstraintCheckerTest.java