d2.addSeries(s3);
d2.addSeries(s4);
d2.addSeries(s5);
XYBarRenderer r = new XYBarRenderer();
XYPlot plot = new XYPlot(new XYBarDataset(d1, 1.0), new NumberAxis("x"),
new NumberAxis("y"), r);
plot.setDataset(1, new XYBarDataset(d2, 2.0));
/*JFreeChart chart =*/ new JFreeChart(plot);
LegendItem li = r.getLegendItem(1, 2);
assertEquals("S5", li.getLabel());
assertEquals(1, li.getDatasetIndex());
assertEquals(2, li.getSeriesIndex());