@Test
public void testSummarized() throws MetricSourceClientException, IOException {

  final String url = "https://api.newrelic.com/v2/applications/0/metrics/data.json";
  final String applicationId = "0";
  final String className = "my.Class";
  final String methodName = "myMethod";
  final String response = getResourceAsString(RESPONSE_STUB_PATH);
  mockServer.expect(requestTo(url)).andExpect(method(HttpMethod.POST)).andRespond(withSuccess(response, MediaType.APPLICATION_JSON));
  final MethodInfoSummarized actualResponse = newRelicClient.summarized(applicationId, className, methodName);
  assertThat(actualResponse).isEqualTo(DtoStubs.METHOD_INFO_SUMARIZED);
}