title: How to match request paramters in wire-mock url?
body: <p>I'm trying to create a mock server using wire-mock and I'm facing the following problem: I want to hit an URL like this /customers?customerId={customerId}&amp;customerNo={customerNo}. </p>
  
  <p>My question is how can I match the request paramters customerId and customerNo from stub of the mock server in Java code.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>After the first response, this is the result:</p>
  
  <p><a href="https://i.stack.imgur.com/MGFXb.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/MGFXb.jpg" alt="enter image description here"></a></p>
  
  <p><strong>EDIT 2</strong></p>
  
  <p>Here is my stub:</p>
  
  <pre><code>WireMockServer mockServer = new WireMockServer(8079);
      mockServer.start();
      mockServer.stubFor(get(urlEqualTo("/api/loan/admin/contracts"))
              .withQueryParam("status", equalTo("ACTIVE"))
              .withQueryParam("cnp", equalTo("1950503410033"))
              .willReturn(aResponse().withBody("Welcome to Baeldung!")));
  </code></pre>