labelHandle.setProperty( IStyleModel.WIDOWS_PROP, "5" ); labelHandle.setProperty( IStyleModel.ORPHANS_PROP, "4" );
	public void testWriter( ) throws Exception	{		LabelHandle labelHandle = getLabel( );		// set x to 7		labelHandle.setProperty( Label.X_PROP, "7mm" ); //$NON-NLS-1$		labelHandle.setProperty( Label.HEIGHT_PROP, "0.5mm" ); //$NON-NLS-1$		labelHandle.setProperty( Label.STYLE_PROP, null );		OdaDataSet dataSet = (OdaDataSet) design.findDataSet( "secondDataSet" ); //$NON-NLS-1$		assertNotNull( dataSet );		// labelHandle.setProperty(Label.DATA_SET_PROP, dataSet);		labelHandle.setProperty( Label.DATA_SET_PROP, null );		labelHandle.setProperty( Label.NAME_PROP, "labelTestWriter" ); //$NON-NLS-1$		ActionHandle action = labelHandle.getActionHandle( );		assertNotNull( action );		action.setURI( "www.myhost.com" ); //$NON-NLS-1$		// reads in a label that exists in the body.		labelHandle = (LabelHandle) designHandle.findElement( "bodyLabel" ); //$NON-NLS-1$		assertEquals( ReportDesign.BODY_SLOT, labelHandle.getContainer( )				.findContentSlot( labelHandle ) );		labelHandle.setProperty( Style.COLOR_PROP, "blue" ); //$NON-NLS-1$ 		assertEquals( ReportDesign.BODY_SLOT, labelHandle.getContainer( )				.findContentSlot( labelHandle ) );		labelHandle.setText( "Final day" ); //$NON-NLS-1$		labelHandle.setWidth( "5.0mm" ); //$NON-NLS-1$		labelHandle.setTextKey( "new text resource key" ); //$NON-NLS-1$		labelHandle.setHelpText( "new help text" ); //$NON-NLS-1$		labelHandle.setHelpTextKey( "new help text key" ); //$NON-NLS-1$		labelHandle.setCustomXml( "new custom <text> </text> for bodyLabel" ); //$NON-NLS-1$		// make sure that this label exists in the body slot.		assertEquals( ReportDesign.BODY_SLOT, labelHandle.getContainer( )				.findContentSlot( labelHandle ) );		save();		assertTrue( compareFile( goldenFileName) );	}