@Test
public void testSingle() throws Exception {

    try (InputStream stream = GraphiteFormatParserTest.class.getResourceAsStream("/opentsdb-http-api-single.json")) {
        assertNotNull(stream);
        List<MetricTimeSeries> series = Lists.newArrayList(sut.parse(stream));
        // We should have one metric
        assertThat(series.size(), is(1));
        MetricTimeSeries metric = series.get(0);
        assertThat(metric.getName(), is("sys.cpu.nice"));
        assertThat(metric.getTimestamps().size(), is(1));
        assertThat(metric.getValues().get(0), is(18.0));
        assertThat(metric.getTimestamps().get(0), is(1346846400000L));
    }
}