TreeMap<Long, Double> metricValues = new TreeMap<Long, Double>();
metricValues.put(now + 100, 1.0);
metricValues.put(now + 200, 2.0);
metricValues.put(now + 300, 3.0);
timelineMetric.setMetricValues(metricValues);
<BUG>valueMap.put("cpu_user", timelineMetric);
TimelineMetricCacheEntryFactory cacheEntryFactory = createMock(TimelineMetricCacheEntryFactory.class);</BUG>
TimelineAppMetricCacheKey queryKey = new TimelineAppMetricCacheKey(
Collections.singleton("cpu_user"),
"app1",

TreeMap<Long, Double> metricValues = new TreeMap<Long, Double>();
metricValues.put(now + 100, 1.0);
metricValues.put(now + 200, 2.0);
metricValues.put(now + 300, 3.0);
timelineMetric.setMetricValues(metricValues);
metrics.getMetrics().add(timelineMetric);
TimelineMetricCacheEntryFactory cacheEntryFactory = createMock(TimelineMetricCacheEntryFactory.class);
TimelineAppMetricCacheKey queryKey = new TimelineAppMetricCacheKey(
Collections.singleton("cpu_user"),
"app1",
