saveAs( "OdaDataSetDesignerState_out.xml" ); compareTextFile( "OdaDataSetDesignerState_golden.xml", "OdaDataSetDesignerState_out.xml" );
save( ); compareTextFile( "OdaDataSetDesignerState_golden.xml");
	public void testDesignerState( ) throws Exception	{		openDesign( "OdaDataSetConvertDesignerState.xml" ); //$NON-NLS-1$		OdaDataSetHandle setHandle = (OdaDataSetHandle) designHandle				.findDataSet( "myDataSet1" ); //$NON-NLS-1$		DesignerState designerState = new ModelOdaAdapter( )				.newOdaDesignerState( setHandle );		assertEquals( "1.1", designerState.getVersion( ) ); //$NON-NLS-1$		DesignerStateContent stateContent = designerState.getStateContent( );		assertEquals( "content as string", stateContent //$NON-NLS-1$				.getStateContentAsString( ) );		assertNull( stateContent.getStateContentAsBlob( ) );		designerState.setVersion( "2.0" ); //$NON-NLS-1$		byte[] data = {0x34, 0x32, 0x33, 0x44, 0x52};		stateContent.setStateContentAsBlob( data );		new ModelOdaAdapter( )				.updateROMDesignerState( designerState, setHandle );		saveAs( "OdaDataSetDesignerState_out.xml" ); //$NON-NLS-1$		compareTextFile( "OdaDataSetDesignerState_golden.xml", //$NON-NLS-1$				"OdaDataSetDesignerState_out.xml" ); //$NON-NLS-1$		setHandle.setDesignerState( null );		assertNull( setHandle.getDesignerState( ) );		new ModelOdaAdapter( )				.updateROMDesignerState( designerState, setHandle );		OdaDesignerStateHandle romDesignerState = setHandle.getDesignerState( );		assertNotNull( romDesignerState );		assertEquals( "2.0", romDesignerState.getVersion( ) ); //$NON-NLS-1$	}