@Test
public void testValidGraphiteMetricQueryResult() throws Exception {

        Instant fixedInstant = Instant.parse("2020-03-01T05:05:39Z");
        MetricQueryService metricQueryService = new MetricQueryService(httpClient);
        MetricData metricDataResult = metricQueryService.queryMetricSource(metricSourceSinkConfig,
                        metricFunctionsSpec, fixedInstant);
        assertEquals(12.0, metricDataResult.getValue(), 0.1);
        assertEquals(1583039100, metricDataResult.getTimestamp());
        Map<String, String> tags = metricDataResult.getMetricDefinition().getTags().getKv();
        assertEquals(6, tags.size());
        assertEquals("sample_app1", tags.get("app_name"));
        assertEquals("test", tags.get("env"));
        assertEquals("custom_tag_value", tags.get("custom_tag"));
        assertEquals("sum", tags.get("aggregatedBy"));
        assertEquals("sumSeries(a.b.c)", tags.get("name"));
        assertEquals("added_tag_value", tags.get("added_tag"));
}