@Test
public void getRawMetrics() throws Exception {

    stubMetricUrl();
    String metricName = "metric";
    String parameters = "";
    long from = 1234000L;
    long to = 5678000L;
    Map<String, Map<Long, Double>> metrics = querier.getRawMetrics(metricName, parameters, from, to);
    assertResult(metrics.get("metric"));
    verify(getRequestedFor(urlPathEqualTo(TEST_RENDER_API_PATH))
            .withQueryParam("target", equalTo("metric"))
            .withQueryParam("format", equalTo("json"))
            .withQueryParam("from", equalTo("1234"))
            .withQueryParam("until", equalTo("5678")));
}