/**
* Check that only one chart change event is generated by a change to a
* subplot.
*/
public void testNotification() {
CombinedRangeXYPlot plot = createPlot();
JFreeChart chart = new JFreeChart(plot);
chart.addChangeListener(this);
XYPlot subplot1 = (XYPlot) plot.getSubplots().get(0);
NumberAxis xAxis = (NumberAxis) subplot1.getDomainAxis();
xAxis.setAutoRangeIncludesZero(!xAxis.getAutoRangeIncludesZero());
assertEquals(1, this.events.size());
// a redraw should NOT trigger another change event