code: public static void verifyRolloutGroupParameter(final int amountGroup, final QuotaManagement quotaManagement) {
          if (amountGroup <= 0) {
              throw new ValidationException("The amount of groups cannot be lower than zero");
          } else if (amountGroup > quotaManagement.getMaxRolloutGroupsPerRollout()) {
              throw new QuotaExceededException(
                      "The amount of groups cannot be greater than " + quotaManagement.getMaxRolloutGroupsPerRollout());
  
          }
      }
docs: Verify if the supplied amount of groups is in range
  
  @param amountGroup
  amount of groups
  @param quotaManagement
  to retrieve maximum number of groups allowed