code: public PactDslWithState given(String state, String firstKey, Object firstValue, Object... paramsKeyValuePair) {
  
          if (paramsKeyValuePair.length % 2 != 0) {
              throw new IllegalArgumentException("Pair key value should be provided, but there is one key without value.");
          }
  
          final Map<String, Object> params = new HashMap<>();
          params.put(firstKey, firstValue);
  
          for (int i = 0; i < paramsKeyValuePair.length; i+=2) {
              params.put(paramsKeyValuePair[i].toString(), paramsKeyValuePair[i+1]);
          }
  
          return new PactDslWithState(consumerPactBuilder, consumerPactBuilder.getConsumerName(), providerName,
                  new ProviderState(state, params), defaultRequestValues, defaultResponseValues);
      }
docs: Describe the state the provider needs to be in for the pact test to be verified.
  
  @param firstKey Key of first parameter element
  @param firstValue Value of first parameter element
  @param paramsKeyValuePair Additional parameters in key-value pairs