ArrayList<String> dates = new ArrayList<String>();
for (int day = 1; day < 32; day++) {
int right = (day == 31) ? 1 : 0;
dates.add(String.format("200905%02d010203_%1d_0_0_0", day, right));
}
BarGraph barGraph = makeBarGraph(dates.toArray(new String[dates.size()]));
assertEquals(20, barGraph.size());
assertEquals(dateFormat.parse("20090512010203"), barGraph.getStartingDate());
assertEquals(dateFormat.parse("20090531010203"), barGraph.getEndingDate());
assertEquals("+-------------------", barGraph.testString());
}