cacheEntryFactory.updateEntryValue(testKey, value);
expectLastCall().once();
replay(cacheEntryFactory);
TimelineMetricCacheProvider cacheProvider = getMetricCacheProvider(configuration, cacheEntryFactory);
TimelineMetricCache cache = cacheProvider.getTimelineMetricsCache();
<BUG>TimelineMetrics metrics = cache.getAppTimelineMetricsFromCache(queryKey);
List<TimelineMetric> metricsList = metrics.getMetrics();</BUG>
Assert.assertEquals(1, metricsList.size());
TimelineMetric metric = metricsList.iterator().next();
Assert.assertEquals("cpu_user", metric.getMetricName());

cacheEntryFactory.updateEntryValue(testKey, value);
expectLastCall().once();
replay(cacheEntryFactory);
TimelineMetricCacheProvider cacheProvider = getMetricCacheProvider(configuration, cacheEntryFactory);
TimelineMetricCache cache = cacheProvider.getTimelineMetricsCache();
metrics = cache.getAppTimelineMetricsFromCache(queryKey);
List<TimelineMetric> metricsList = metrics.getMetrics();
Assert.assertEquals(1, metricsList.size());
TimelineMetric metric = metricsList.iterator().next();
Assert.assertEquals("cpu_user", metric.getMetricName());
