XYPlot plot = (XYPlot) chart.getPlot();
plot.setRangeAxis(1, new NumberAxis("X2"));
ChartPanel panel = new ChartPanel(chart);
chart.addChangeListener(this);
this.chartChangeEvents.clear();
panel.zoomOutRange(1.0, 2.0);
assertEquals(1, this.chartChangeEvents.size());
}
/**
* Checks that a call to the restoreAutoDomainBounds() method, for a plot