assertNotNull(model.getChartExpressionsModel().getSelectedItem());
assertNotNull(model.getPrimaryDataSourcesModel().getSelectedItem());
assertNotNull(model.getSecondaryDataSourcesModel().getSelectedItem());
final ExpressionMetaData expressionMetaData =
ExpressionRegistry.getInstance().getExpressionMetaData(BarChartExpression.class.getName());
model.getChartExpressionsModel().setSelectedItem(expressionMetaData);
assertEquals(expressionMetaData, model.getChartExpressionsModel().getSelectedItem());
assertTrue(model.getChartExpression().getClass() == BarChartExpression.class);
assertEquals(ChartType.BAR, model.getCurrentChartType());
assertSame(primaryDataCollector, model.getPrimaryDataSource());
final ExpressionMetaData dsExpressionMetaData =
ExpressionRegistry.getInstance().getExpressionMetaData(CategorySetDataCollector.class.getName());
assertEquals(dsExpressionMetaData, model.getPrimaryDataSourcesModel().getSelectedItem());
assertNull(model.getSecondaryDataSource());
assertNull(model.getSecondaryDataSourcesModel().getSelectedItem());
}