private static <T extends JobParameters> List<T> getCombination(
      JobParameterBuilder<T> buildJobParam) {

    List<T> result = new ArrayList<>();
    for (String tag : TAG_COMBINATIONS) {
      for (List<Integer> constraintList : getAllConstraintCombinations()) {
        for (boolean recurring : new boolean[] {true, false}) {
          for (boolean replaceCurrent : new boolean[] {true, false}) {
            for (int lifetime : LIFETIME_COMBINATIONS) {
              for (JobTrigger trigger : TRIGGER_COMBINATIONS) {
                for (Class<TestJobService> service : SERVICE_COMBINATIONS) {
                  for (Bundle extras : getBundleCombinations()) {
                    for (RetryStrategy rs : RETRY_STRATEGY_COMBINATIONS) {
                      result.add(
                          buildJobParam.build(
                              tag,
                              replaceCurrent,
                              constraintList,
                              recurring,
                              lifetime,
                              trigger,
                              service,
                              extras,
                              rs));
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
    return result;
  }
Provides common utilities helpful for testing.
jobdispatcher/src/testLib/com/firebase/jobdispatcher/TestUtil.java