expect(configuration.getMetricCacheTTLSeconds()).andReturn(3600);
expect(configuration.getMetricCacheIdleSeconds()).andReturn(100);
expect(configuration.getMetricsCacheManagerHeapPercent()).andReturn("10%");
replay(configuration);
final long now = System.currentTimeMillis();
<BUG>Map<String, TimelineMetric> valueMap = new HashMap<String, TimelineMetric>();
TimelineMetric timelineMetric = new TimelineMetric();</BUG>
timelineMetric.setMetricName("cpu_user");
timelineMetric.setAppId("app1");
TreeMap<Long, Double> metricValues = new TreeMap<Long, Double>();

expect(configuration.getMetricCacheTTLSeconds()).andReturn(3600);
expect(configuration.getMetricCacheIdleSeconds()).andReturn(100);
expect(configuration.getMetricsCacheManagerHeapPercent()).andReturn("10%");
replay(configuration);
final long now = System.currentTimeMillis();
TimelineMetrics metrics = new TimelineMetrics();
TimelineMetric timelineMetric = new TimelineMetric();
timelineMetric.setMetricName("cpu_user");
timelineMetric.setAppId("app1");
TreeMap<Long, Double> metricValues = new TreeMap<Long, Double>();
