y = new double[] {14.1};
z = new double[] {2.4};
double[][] s5 = new double[][] {x, y, z};
d2.addSeries("S5", s5);
XYBubbleRenderer r = new XYBubbleRenderer();
XYPlot plot = new XYPlot(d1, new NumberAxis("x"),
new NumberAxis("y"), r);
plot.setDataset(1, d2);
/*JFreeChart chart =*/ new JFreeChart(plot);
LegendItem li = r.getLegendItem(1, 2);
assertEquals("S5", li.getLabel());
assertEquals(1, li.getDatasetIndex());
assertEquals(2, li.getSeriesIndex());
}