@Test
public void testGetDataRetrievalValueOrMetricKey_getValue() {

    val mappedUuid = UUID.randomUUID();
    Map<String, String> tags = new HashMap<>();
    tags.put("function", "sum(test.metrics)");
    val metricDefinition = new MetricDefinition(new TagCollection(tags));
    val metricData = new MetricData(metricDefinition, 100.0, Instant.now().getEpochSecond());
    val mappedMetricData = new MappedMetricData(metricData, mappedUuid);
    val value = MetricUtil.getDataRetrievalValue(mappedMetricData, "function");
    assertEquals("sum(test.metrics)", value);
}