@Test
public void getRawMetrics() throws Exception {

    stubMetricUrl();
    String metricName = "sum:sys.cpu.user[host=web01]";
    String parameters = "";
    long from = 1234L;
    long to = 5678L;
    Map<String, Map<Long, Double>> metrics = querier.getRawMetrics(metricName, parameters, from, to);
    assertResult(metrics.get("sys.cpu.user[host=web01]"));
    verify(getRequestedFor(urlPathEqualTo(TEST_QUERY_API_PATH))
            .withQueryParam("m", equalTo("sum:sys.cpu.user[host=web01]"))
            .withQueryParam("start", equalTo("1234"))
            .withQueryParam("end", equalTo("5678")));
}