private void mockEmitMessages() {
   WireMock.stubFor(
       WireMock.post(WireMock.urlMatching(MOCKED_COLLECTION))
           .willReturn(
               WireMock.aResponse()
                   .withStatus(200)
                   .withHeader("Content-Type", "text/html")
                   .withBody("")));
 }