JsonRestClientImpl implements JsonRestClient { @Override public JsonNode get(final String url, final RestRequestHeader... requestHeaders) throws JsonProcessingException, IOException { final ResponseEntity<String> response = restClient.get(url, String.class, requestHeaders); return getJson(response); }  @Override JsonNode get(final String url, final RestRequestHeader... requestHeaders); @Override JsonNode post(final String url, final RestRequestBody requestBody, final RestRequestHeader... requestHeaders);  }
@Test public void testGet() throws JsonProcessingException, IOException { setupExpectation(HttpMethod.GET); assertResponseOk(jsonRestClient.get(ANY_URL)); }