mockserver-client-java/src/main/java/org/mockserver/client/MockServerClient.java
public MockServerClient verify(HttpRequest... httpRequests) throws AssertionError {
        if (httpRequests == null || httpRequests.length == 0 || httpRequests[0] == null) {
            throw new IllegalArgumentException("verify(HttpRequest...) requires a non null non empty array of HttpRequest objects");
        }

        VerificationSequence verificationSequence = new VerificationSequence().withRequests(httpRequests);
        String result = sendRequest(
            request()
                .withMethod("PUT")
                .withContentType(APPLICATION_JSON_UTF_8)
                .withPath(calculatePath("verifySequence"))
                .withBody(verificationSequenceSerializer.serialize(verificationSequence), StandardCharsets.UTF_8)
        ).getBodyAsString();

        if (result != null && !result.isEmpty()) {
            throw new AssertionError(result);
        }
        return clientClass.cast(this);
    }
/**
     * Verify a list of requests have been sent in the order specified for example:
     * <pre>
     * mockServerClient
     *  .verify(
     *      request()
     *          .withPath("/first_request")
     *          .withBody("some_request_body"),
     *      request()
     *          .withPath("/second_request")
     *          .withBody("some_request_body")
     *  );
     * </pre>
     *
     * @param httpRequests the http requests that must be matched for this verification to pass
     * @throws AssertionError if the request has not been found
     */


@param httpRequests the http requests that must be matched for this verification to pass
@throws AssertionError if the request has not been found
@param httpRequests the http requests that must be matched for this verification to pass @throws AssertionError if the request has not been found
public MockServerClient verify(HttpRequest... httpRequests) throws AssertionError {
        if (httpRequests == null || httpRequests.length == 0 || httpRequests[0] == null) {
            throw new IllegalArgumentException("verify(HttpRequest...) requires a non null non empty array of HttpRequest objects");
        }
        VerificationSequence verificationSequence = new VerificationSequence().withRequests(httpRequests);
        String result = sendRequest(
            request()
                .withMethod("PUT")
                .withContentType(APPLICATION_JSON_UTF_8)
                .withPath(calculatePath("verifySequence"))
                .withBody(verificationSequenceSerializer.serialize(verificationSequence), StandardCharsets.UTF_8)
        ).getBodyAsString();
        if (result != null && !result.isEmpty()) {
            throw new AssertionError(result);
        }
        return clientClass.cast(this);
    }
public MockServerClient verify ( HttpRequest ... httpRequests ) throws AssertionError { if ( httpRequests == null || httpRequests . length == 0 || httpRequests [ 0 ] == null ) { throw new IllegalArgumentException ( "verify(HttpRequest...) requires a non null non empty array of HttpRequest objects" ) ; } VerificationSequence verificationSequence = new VerificationSequence ( ) . withRequests ( httpRequests ) ; String result = sendRequest ( request ( ) . withMethod ( "PUT" ) . withContentType ( APPLICATION_JSON_UTF_8 ) . withPath ( calculatePath ( "verifySequence" ) ) . withBody ( verificationSequenceSerializer . serialize ( verificationSequence ) , StandardCharsets . UTF_8 ) ) . getBodyAsString ( ) ; if ( result != null && ! result . isEmpty ( ) ) { throw new AssertionError ( result ) ; } return clientClass . cast ( this ) ; }
Verify a list of requests have been sent in the order specified for example:
 <pre>
 mockServerClient
  .verify(
      request()
          .withPath("/first_request")
          .withBody("some_request_body"),
      request()
          .withPath("/second_request")
          .withBody("some_request_body")
  );
 </pre>
Verify a list of requests have been sent in the order specified for example : <pre > mockServerClient . verify ( request () . withPath ( " / first_request " ) . withBody ( " some_request_body " ) request () . withPath ( " / second_request " ) . withBody ( " some_request_body " ) ) ; < / pre >