String[] patten=new String[]{"M"};
long m7 = DateUtils.parseDate("7", patten).getTime();
long m8 = DateUtils.parseDate("8", patten).getTime();
long m9 = DateUtils.parseDate("9", patten).getTime();
List<MetricValue> metricValues1= Lists.newArrayList(new MetricValue("pay",2, m8) );
List<MetricValue> metricValues2= Lists.newArrayList(new MetricValue("request",10,m7),new MetricValue("request",12,m8),new MetricValue("request",13,m9) );
List<MetricValue> metricValues3= Lists.newArrayList();
List<List<MetricValue>> lists = Lists.newArrayList(metricValues1, metricValues2,metricValues3);
List<List> chartRows = ChartUtil.format(lists);
Assert.assertEquals(4,chartRows.size());
//time ,pay,request