saveAs( "OdaDataSourceDesignerState_out.xml" ); compareTextFile( "OdaDataSourceDesignerState_golden.xml", "OdaDataSourceDesignerState_out.xml" );
save( ); compareTextFile( "OdaDataSourceDesignerState_golden.xml" );
	public void testDesignerState( ) throws Exception	{		openDesign( INPUT_FILE );		OdaDataSourceHandle sourceHandle = (OdaDataSourceHandle) designHandle				.findDataSource( "myDataSource1" ); //$NON-NLS-1$		DesignerState designerState = new ModelOdaAdapter( )				.newOdaDesignerState( sourceHandle );		assertEquals( "1.1", designerState.getVersion( ) ); //$NON-NLS-1$		DesignerStateContent stateContent = designerState.getStateContent( );		assertEquals( "content as blob", new String( stateContent //$NON-NLS-1$				.getStateContentAsBlob( ), "8859_1" ) ); //$NON-NLS-1$		assertNull( stateContent.getStateContentAsString( ) );		designerState.setVersion( "2.0" ); //$NON-NLS-1$		designerState.setNewStateContentAsString( "content as string 2.0" ); //$NON-NLS-1$		new ModelOdaAdapter( ).updateROMDesignerState( designerState,				sourceHandle );		saveAs( "OdaDataSourceDesignerState_out.xml" ); //$NON-NLS-1$		compareTextFile( "OdaDataSourceDesignerState_golden.xml", //$NON-NLS-1$				"OdaDataSourceDesignerState_out.xml" ); //$NON-NLS-1$				sourceHandle.setDesignerState( null );		assertNull( sourceHandle.getDesignerState( ) );				new ModelOdaAdapter( )				.updateROMDesignerState( designerState, sourceHandle );		OdaDesignerStateHandle romDesignerState = sourceHandle.getDesignerState( );		assertNotNull( romDesignerState );		assertEquals( "2.0", romDesignerState.getVersion( ) ); //$NON-NLS-1$	}