title: Trying to use MockMvc together with Wiremock
body: <p>I'm trying to make a mockMvc call run together with wiremock. But the mockMvc call below in the code keeps throwing 404 instead of the expected 200 HTTP status code.</p>
  
  <p>I know that wiremock is running .. I can do <a href="http://localhost:8070/lala" rel="nofollow noreferrer">http://localhost:8070/lala</a> through browser when wiremock is running.</p>
  
  <p>Can someone please advise ?</p>
  
  <pre><code>
  @RunWith(SpringRunner.class)
  @SpringBootTest(classes = TestApp.class)
  @AutoConfigureMockMvc
  public class MyControllerTest { 
  
  
      @Inject
      public MockMvc mockMvc;
  
      @ClassRule
      public static final WireMockClassRule wireMockRule = new WireMockClassRule(8070);
  
      @Rule
      public WireMockClassRule instanceRule = wireMockRule;
  
      public ResponseDefinitionBuilder responseBuilder(HttpStatus httpStatus) {
          return aResponse()
                  .withStatus(httpStatus.value());
      }
  
      @Test
      public void testOne() throws Exception {
          stubFor(WireMock
                  .request(HttpMethod.GET.name(), urlPathMatching("/lala"))
                  .willReturn(responseBuilder(HttpStatus.OK)));
  
          Thread.sleep(1000000);
  
          mockMvc.perform(MockMvcRequestBuilders.request(HttpMethod.GET, "/lala")) .andExpect(status().isOk());
      }
  
  }
  </code></pre>