title: Not able to verify requests made to WireMock Server: "No Requests Exactly Match"
body: <p>I'm trying to verify a request I made to the WireMock Server, but I'm getting an error saying the requests don't exactly match. The only bit that doesn't match is the "Content-Type: plain\text" bit.</p>
  
  <p>Please see below my code:</p>
  
  <pre><code>public class WeatherApplicationTest {
  
  
      @Rule
      public  WireMockRule wireMockRule = new WireMockRule(8080);
    //  public   WireMockServer wireMockServer = new WireMockServer(8090); //No-args constructor will start on port 8080, no HTTPS
  
  
  
      @BeforeClass
      public  static void setUpClass() {
          //wireMockServer.start();
      }
  
      @AfterClass
      public static  void tearDownClass() {
          //wireMockServer.stop();
  
      }
  
  
      @Test
      public void statusMessage() throws IOException{
  
                  wireMockRule.start();
  
  
           stubFor(get(urlEqualTo("/user/1"))
          .willReturn(aResponse()
          .withStatus(200)
          .withStatusMessage("Everything is fine")
          .withHeader("Content-Type","text/plain")));
  
         HttpClient client = new DefaultHttpClient();
         HttpClient client2 = new DefaultHttpClient();
  
          HttpGet request = new HttpGet("http://localhost:" + wireMockRule.port() + 
          "/user/1");
         HttpResponse response = client.execute(request);
  
         HttpGet request2 = new HttpGet("http://localhost:" + wireMockRule.port() + 
          "/some/else");
         HttpResponse response2 = client2.execute(request2);
  
          assertThat(response.getStatusLine().getStatusCode(), is(200));
          assertThat(response2.getStatusLine().getStatusCode(), is(404));
  
  
          verify(getRequestedFor(urlEqualTo("/user/1"))
          .withHeader("Content-Type", equalTo("text/plain")));
  
  
          wireMockRule.stop();
  
  
  
  }
  }
  </code></pre>
  
  <p>This is the error message I'm getting:</p>
  
  <blockquote>
    <p>No requests exactly matched. Most similar request was:  expected:&lt; GET
    /user/1</p>
    
    <p>Content-Type: text/plain</p>
    
    <blockquote>
      <p>but was:&lt; GET /user/1</p>
    </blockquote>
  </blockquote>