JFreeChart chart = ChartFactory.createXYLineChart("TestChart", "X",
"Y", dataset, PlotOrientation.VERTICAL, false, false, false);
ChartPanel panel = new ChartPanel(chart);
chart.addChangeListener(this);
this.chartChangeEvents.clear();
panel.zoomOutBoth(1.0, 2.0);
assertEquals(1, this.chartChangeEvents.size());
}
/**
* Checks that a call to the restoreAutoBounds() method generates just one