@Test
public void can_post_webhook() {

    wireMockRule.stubFor(post("/some/path").willReturn(status(200)));
    when(reportingConfig.url()).thenReturn(String.format("http://localhost:%s/some/path", wireMockRule.port()));
    String json = "{\"foo\":\"bar\"}";
    httpJsonPoster.post(json);
    wireMockRule.verify(postRequestedFor(urlPathEqualTo("/some/path")).withRequestBody(containing(json)));
}