code: public static PactDslJsonBody arrayMinMaxLike(int minSize, int maxSize, int numberExamples) {
      if (numberExamples < minSize) {
        throw new IllegalArgumentException(String.format("Number of example %d is less than the minimum size of %d",
          numberExamples, minSize));
      } else if (numberExamples > maxSize) {
        throw new IllegalArgumentException(String.format("Number of example %d is more than the maximum size of %d",
          numberExamples, maxSize));
      }
      PactDslJsonArray parent = new PactDslJsonArray("", "", null, true);
      parent.setNumberExamples(numberExamples);
      parent.matchers.addRule("", parent.matchMinMax(minSize, maxSize));
      return new PactDslJsonBody(".", "", parent);
    }
docs: Array with a minimum and maximum size where each item must match the following example
  @param minSize minimum size
  @param maxSize maximum size
  @param numberExamples Number of examples to generate