  @Test
  public void shouldCallCustomerService() throws JSONException {


    JSONObject json = new JSONObject();
    json.put("customerId", 101);
    json.put("name", "Fred");
    json.put("creditLimit", "12.34");

    String expectedResponse = json.toString();

    stubFor(get(urlEqualTo("/customers/101"))
            .willReturn(aResponse()
                    .withStatus(200)
                    .withHeader("Content-Type", "application/json")
                    .withBody(expectedResponse)));


    GetCustomerResponse customer = customerServiceProxy.findCustomerById("101").block().get();

    assertEquals(new Long(101L), customer.getCustomerId());

    verify(getRequestedFor(urlMatching("/customers/101")));
  }