Bug 194843 Cross tab Cube - Cannot delete a dimension using the cube builder
- Open the attached report design - Delete the "Region" group. Current behavior - Does now allow me to delete the group.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/command/ContentCommandTest.java
iter = dataSourceHandle.clientsIterator( );
		assertEquals( true, iter.hasNext( ) );
		
		createDataSourceAndDataSet( );
		dataSourceHandle = designHandle.findDataSource( "dataSource" );
		dataSetHandle = designHandle.findDataSet( "dataSet" );
		dataSourceHandle.drop( );
		assertEquals( dataSourceHandle.getName( ), dataSetHandle
				.getDataSourceName( ) );
		assertEquals( null, dataSetHandle.getDataSource( ) );
		iter = dataSourceHandle.clientsIterator( );
		assertEquals( false, iter.hasNext( ) );
		designHandle.getCommandStack( ).undo( );
		iter = dataSourceHandle.clientsIterator( );
		assertEquals( dataSetHandle, iter.next( ) );
		assertEquals( dataSourceHandle.getName( ), dataSetHandle
				.getDataSourceName( ) );
		assertEquals( dataSourceHandle, dataSetHandle.getDataSource( ) );
	}
	private void createDataSourceAndDataSet( ) throws Exception
	{
		designHandle = createDesign( );
		ScriptDataSourceHandle dataSourceHandle = designHandle
				.getElementFactory( ).newScriptDataSource( "dataSource" );
		ScriptDataSetHandle dataSetHandle = designHandle.getElementFactory( )
				.newScriptDataSet( "dataSet" );
		designHandle.getDataSources( ).add( dataSourceHandle );
		designHandle.getDataSets( ).add( dataSetHandle );
		dataSetHandle.setDataSource( dataSourceHandle.getName( ) );
	}