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.zoom(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0));
assertEquals(1, this.chartChangeEvents.size());
}
/**
* Checks that a call to the zoomInBoth() method generates just one