@@ -0,0 +1,2556 @@
+package au.com.dius.pact.consumer.junit5;%0A%0Aimport au.com.dius.pact.consumer.MockServer;%0Aimport au.com.dius.pact.consumer.dsl.PactDslWithProvider;%0Aimport au.com.dius.pact.core.model.RequestResponsePact;%0Aimport au.com.dius.pact.core.model.annotations.Pact;%0Aimport org.apache.commons.collections4.MapUtils;%0Aimport org.apache.commons.io.IOUtils;%0Aimport org.apache.http.HttpResponse;%0Aimport org.apache.http.client.fluent.Request;%0Aimport org.junit.jupiter.api.BeforeEach;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.extension.ExtendWith;%0A%0Aimport java.io.IOException;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport static io.pactfoundation.consumer.dsl.LambdaDsl.newJsonArrayMinLike;%0Aimport static java.lang.String.format;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.equalTo;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.hamcrest.Matchers.notNullValue;%0A%0A@ExtendWith(PactConsumerTestExt.class)%0A@PactTestFor(providerName = %22ApiProvider%22, port = %221234%22)%0Apublic class Defect1070Test %7B%0A  private Map%3CString, String%3E headers = MapUtils.putAll(new HashMap%3C%3E(), new String%5B%5D %7B%0A    %22Content-Type%22, %22application/json%22%0A  %7D);%0A%0A  @BeforeEach%0A  public void setUp(MockServer mockServer) %7B%0A    assertThat(mockServer, is(notNullValue()));%0A  %7D%0A%0A  @Pact(consumer = %22ApiConsumer%22)%0A  public RequestResponsePact articles(PactDslWithProvider builder) %7B%0A    return builder%0A            .given(%22This is a test%22)%0A            .uponReceiving(%22GET request to retrieve default values%22)%0A                    .matchPath(format(%22/api/test/%25s%22, %22%5C%5Cd%7B1,8%7D%22))%0A                    .method(%22GET%22)%0A                    .willRespondWith()%0A                    .status(200)%0A                    .headers(headers)%0A                    .body(newJsonArrayMinLike(1, values -%3E values.object(value -%3E %7B%0A                              value.numberType(%22id%22, 32432);%0A                              value.stringType(%22name%22, %22testId254%22);%0A                              value.numberType(%22size%22, 1445211);%0A                            %7D%0A                    )).build())%0A                    .toPact();%0A  %7D%0A%0A  @Test%0A  @PactTestFor%0A  void testApi(MockServer mockServer) throws IOException %7B%0A    HttpResponse httpResponse = Request.Get(mockServer.getUrl() + %22/api/test/1234%22).execute().returnResponse();%0A    assertThat(httpResponse.getStatusLine().getStatusCode(), is(equalTo(200)));%0A    assertThat(IOUtils.toString(httpResponse.getEntity().getContent()),%0A      is(equalTo(%22%5B%7B%5C%22size%5C%22:1445211,%5C%22name%5C%22:%5C%22testId254%5C%22,%5C%22id%5C%22:32432%7D%5D%22)));%0A  %7D%0A%7D%0A

add test to try replicate Github issue