@Test
public void testLoadCsv() throws Exception {

    val metric = new MetricDefinition(new TagCollection(new HashMap<String, String>() {{
        put("unit", "dummy");
        put("mtype", "dummy");
    }}));
    val is = ClassLoader.getSystemResourceAsStream(DATA_FILENAME);
    val frame = MetricFrameLoader.loadCsv(metric, is, true);
    assertNotNull(frame);
    assertTrue(frame.getNumRows() > 0);
    assertEquals(0.0, frame.getMetricDataPoint(0).getValue(), TOLERANCE);
    assertEquals(3.0, frame.getMetricDataPoint(15).getValue(), TOLERANCE);
}