timelineMetric2.setAppId("app1");
metricValues = new TreeMap<Long, Double>();
metricValues.put(now + 400, 1.0);
metricValues.put(now + 500, 2.0);
metricValues.put(now + 600, 3.0);
<BUG>timelineMetric2.setMetricValues(metricValues);
TimelineMetricsCacheValue existingMetricValue = new TimelineMetricsCacheValue(
now - 1000, now + 1000,
new HashMap<String, TimelineMetric>() {{
put("cpu_user", timelineMetric1);
put("cpu_nice", timelineMetric2);
}}, null);</BUG>
TimelineMetrics newMetrics = new TimelineMetrics();

timelineMetric2.setAppId("app1");
metricValues = new TreeMap<Long, Double>();
metricValues.put(now + 400, 1.0);
metricValues.put(now + 500, 2.0);
metricValues.put(now + 600, 3.0);
timelineMetric2.setMetricValues(metricValues);
TimelineMetrics existingMetrics = new TimelineMetrics();
existingMetrics.getMetrics().add(timelineMetric1);
existingMetrics.getMetrics().add(timelineMetric2);
TimelineMetricsCacheValue existingMetricValue = new TimelineMetricsCacheValue(
now - 1000, now + 1000, existingMetrics, null);
TimelineMetrics newMetrics = new TimelineMetrics();
