@Test
public void getRawMetrics() throws Exception {

    stubMetricUrlForRawMetric();
    String metricName = "metric";
    String parameters = "precision=seconds,appId=appId";
    long from = 1234L;
    long to = 5678L;
    Map<String, Map<Long, Double>> metrics = querier.getRawMetrics(metricName, parameters, from, to);
    assertRawMetricResult(metrics.get("metric"));
    verify(getRequestedFor(urlPathEqualTo(TEST_COLLECTOR_API_PATH))
            .withQueryParam("appId", equalTo("appId"))
            .withQueryParam("metricNames", equalTo("metric"))
            .withQueryParam("startTime", equalTo("1234"))
            .withQueryParam("endTime", equalTo("5678")));
}