TextItemHandle text2DesignHandle = (TextItemHandle)designHandle.findElement( "text1" ); assertNotNull("Text should not be null", text2DesignHandle); assertEquals( null , textDesignHandle.getStringProperty( "backgroundColor" ));
TextItemHandle textDesignHandle = (TextItemHandle) designHandle .findElement( "text1" ); assertNotNull( "Text should not be null", textDesignHandle ); textDesignHandle.setProperty( StyleHandle.BACKGROUND_COLOR_PROP, null ); assertEquals( "#0000FF", textDesignHandle .getStringProperty( "backgroundColor" ) );  StyleHandle styleDesignHandle = (StyleHandle) designHandle .findStyle( "style1" ); assertNotNull( "Style should not be null", styleDesignHandle ); styleDesignHandle.drop( );  super.saveAs( outputFileName );  TextItemHandle text2DesignHandle = (TextItemHandle) designHandle .findElement( "text1" ); assertNotNull( "Text should not be null", text2DesignHandle ); assertEquals( null, textDesignHandle .getStringProperty( "backgroundColor" ) );
	public void testIncludeLibraryRule10( ) throws Exception	{		String fileName = "DesignIncludeLibraryTest.xml";		openDesign( fileName );		designHandle.includeLibrary( LibA , "LibA" );		designHandle.includeLibrary( LibB , "LibB" );				TextItemHandle textDesignHandle = (TextItemHandle)designHandle.findElement( "text1" );		assertNotNull("Text should not be null", textDesignHandle);  //$NON-NLS-1$		textDesignHandle.setProperty( StyleHandle.BACKGROUND_COLOR_PROP , null );		assertEquals( "#0000FF" , textDesignHandle.getStringProperty( "backgroundColor" ));				StyleHandle styleDesignHandle = (StyleHandle)designHandle.findStyle( "style1" );		assertNotNull("Style should not be null", styleDesignHandle);		styleDesignHandle.drop();				designHandle.saveAs( outputFileName );		TextItemHandle text2DesignHandle = (TextItemHandle)designHandle.findElement( "text1" );		assertNotNull("Text should not be null", text2DesignHandle);		assertEquals( null , textDesignHandle.getStringProperty( "backgroundColor" ));	}