item.removeHighLightRules( ); rules = item.getHighLightRule( );
item.removeHighlightRules( ); rules = item.getHighlightRules( );
	public void testHighLightRule( ) throws SemanticException, ScriptException	{		TableHandle tableHandle = factory.newTableItem( "table", 3 );//$NON-NLS-1$		designHandle.getBody( ).add( tableHandle );		HighlightRule rule = StructureFactory.createHighlightRule( );		SharedStyleHandle style = factory.newStyle( "Style" );//$NON-NLS-1$		style.getPropertyHandle( "highlightRules" ).addItem( rule );//$NON-NLS-1$		designHandle.getStyles( ).add( style );		tableHandle.setStyle( style );		RowHandle rowHandle = (RowHandle) tableHandle.getHeader( ).get( 0 );		IRow item = new Row( rowHandle );		IHighLightRule iRule = new HighLightRuleImpl( rule );		item.addHighLightRule( iRule );		IHighLightRule[] rules = item.getHighLightRule( );		assertEquals( 1, rules.length );		iRule = rules[0];		iRule.setColor( "red" ); //$NON-NLS-1$		assertEquals( "red", iRule.getColor( ) ); //$NON-NLS-1$		iRule.setDateTimeFormat( "mm dd, yyyy" );//$NON-NLS-1$		assertEquals( "mm dd, yyyy", iRule.getDateTimeFormat( ) ); //$NON-NLS-1$		iRule.setFontStyle( "oblique" );//$NON-NLS-1$		assertEquals( "oblique", iRule.getFontStyle( ) ); //$NON-NLS-1$		iRule.setFontWeight( "900" );//$NON-NLS-1$		assertEquals( "900", iRule.getFontWeight( ) ); //$NON-NLS-1$		iRule.setStringFormat( "no format" );//$NON-NLS-1$		assertEquals( "no format", iRule.getStringFormat( ) ); //$NON-NLS-1$		iRule.setTestExpression( "expression" );//$NON-NLS-1$		assertEquals( "expression", iRule.getTestExpression( ) ); //$NON-NLS-1$		iRule.setColor( "#FFFFFF" );//$NON-NLS-1$		assertEquals( "#FFFFFF", iRule.getColor( ) );//$NON-NLS-1$		iRule.setOperator( "between" );//$NON-NLS-1$		assertEquals( "between", iRule.getOperator( ) );//$NON-NLS-1$		iRule.setValue1( "100" );//$NON-NLS-1$		assertEquals( "100", iRule.getValue1( ) );//$NON-NLS-1$		iRule.setValue2( "300" );//$NON-NLS-1$		assertEquals( "300", iRule.getValue2( ) );//$NON-NLS-1$		iRule.setBackGroudnColor( "#FF0000" );//$NON-NLS-1$		assertEquals( "#FF0000", iRule.getBackGroudnColor( ) );//$NON-NLS-1$		item.removeHighLightRules( );		rules = item.getHighLightRule( );		assertEquals( 0, rules.length );	}