@Override
    public Job build(
        String tag,
        boolean replaceCurrent,
        List<Integer> constraintList,
        boolean recurring,
        int lifetime,
        JobTrigger trigger,
        Class<TestJobService> service,
        Bundle extras,
        RetryStrategy rs) {
      // noinspection WrongConstant
      return builder
          .setTag(tag)
          .setReplaceCurrent(replaceCurrent)
          .setRecurring(recurring)
          .setConstraints(toIntArray(constraintList))
          .setLifetime(lifetime)
          .setTrigger(trigger)
          .setService(service)
          .setExtras(extras)
          .setRetryStrategy(rs)
          .build();
    }
A factory for building Jobs using the JobParameterBuilder interface.
jobdispatcher/src/testLib/com/firebase/jobdispatcher/TestUtil.java