sessionHandle = DesignEngine.newSession( (ULocale) null );
sessionHandle = new DesignEngine( new DesignConfig( ) ) .newSessionHandle( (ULocale) null );
	public void testStyleProperty( ) throws Exception	{		sessionHandle = DesignEngine.newSession( (ULocale) null );		designHandle = sessionHandle.createDesign( );		design = (ReportDesign) designHandle.getModule( );		SharedStyleHandle style1 = designHandle.getElementFactory( ).newStyle(				"style one" ); //$NON-NLS-1$		SharedStyleHandle style2 = designHandle.getElementFactory( ).newStyle(				"style two" ); //$NON-NLS-1$		designHandle.getStyles( ).add( style1 );		designHandle.getStyles( ).add( style2 );		LabelHandle label = designHandle.getElementFactory( )				.newLabel( "label" ); //$NON-NLS-1$		LabelHandle parent = designHandle.getElementFactory( ).newLabel(				"parent" ); //$NON-NLS-1$		designHandle.getBody( ).add( label );		designHandle.getComponents( ).add( parent );		// first, the label has un-set style		assertNull( label.getStyle( ) );		assertNull( ( (StyledElement) label.getElement( ) ).getStyle( design ) );		assertNull( ( (StyledElement) label.getElement( ) ).getStyleName( ) );		// set style1 to label		label.setStyle( style1 );		assertEquals( style1, label.getStyle( ) );		assertEquals( style1.getElement( ), ( (StyledElement) label				.getElement( ) ).getStyle( design ) );		assertEquals( style1.getName( ), ( (StyledElement) label.getElement( ) )				.getStyleName( ) );		// remove the style1 and set the "null" to label		style1.drop( );		assertNull( designHandle.findStyle( style1.getName( ) ) ); //$NON-NLS-1$		assertNull( label.getStyle( ) );		assertNull( ( (StyledElement) label.getElement( ) ).getStyle( design ) );		assertEquals( style1.getName( ), ( (StyledElement) label.getElement( ) )				.getStyleName( ) );		label.setStyle( null );		assertNull( label.getStyle( ) );		assertNull( ( (StyledElement) label.getElement( ) ).getStyle( design ) );		assertNull( ( (StyledElement) label.getElement( ) ).getStyleName( ) );	}