public void testChartTypeChange()
{
final BarLineChartExpression chartExpression = new BarLineChartExpression();
final CategorySetDataCollector primaryDataCollector = new CategorySetDataCollector();
final XYSeriesCollector secondaryDataCollector = new XYSeriesCollector();
final LegacyChartEditModel model = new LegacyChartEditModel();
model.setChartExpression(chartExpression);
model.setPrimaryDataSource(primaryDataCollector);
model.setSecondaryDataSource(secondaryDataCollector);