@Test
public void getSamplingRules() throws Exception {

    stubFor(any(anyUrl()).willReturn(aResponse()
                                             .withStatus(200)
                                             .withBody(SAMPLING_RULES)));
    GetSamplingRulesResult result = client.getSamplingRules(new GetSamplingRulesRequest());
    GetSamplingRulesResult expected = OBJECT_MAPPER.readValue(SAMPLING_RULES, GetSamplingRulesResult.class);
    assertThat(expected).isEqualTo(result);
    verify(postRequestedFor(urlEqualTo("/GetSamplingRules"))
                   .withHeader("Content-Type", equalTo("application/json"))
                   .withRequestBody(equalToJson("{}")));
}