Bug 206850 [Regression] Error pops up when select value for a map or highlight rule to group header row [0302]
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/HighlightRuleHandleTest.java
* Tested cases:
	 * 
	 * <ul>
	 * <li>The HighlightRule structure can refers to a style element.
	 * getProperty() can work properly.
	 * <li>if the HighlightRule structure refers to a style that is not on the
	 * design tree, the style value cannot be gotten after the highlightRule is
	 * added to a table.
	 * </ul>
	 * 
	 * @throws Exception
	 */
	public void testStyleOnHighlightRuleStruct( ) throws Exception
	{
		openDesign( inputFile );
		StyleHandle style2 = designHandle.findStyle( "My Style2" ); 
		TableHandle table = (TableHandle) designHandle.findElement( "myTable" ); 
		HighlightRule rule = StructureFactory.createHighlightRule( );
		rule.setStyle( style2 );
		assertEquals( DesignChoiceConstants.FONT_WEIGHT_BOLDER, rule
				.getProperty( design, IStyleModel.FONT_WEIGHT_PROP ) );
		PropertyHandle propHandle = table
				.getPropertyHandle( IStyleModel.HIGHLIGHT_RULES_PROP );
		propHandle.addItem( rule );
		assertEquals( DesignChoiceConstants.FONT_WEIGHT_BOLDER, rule
				.getProperty( design, IStyleModel.FONT_WEIGHT_PROP ) );
		
		designHandle.getCommandStack( ).undo( );
		propHandle = style2
				.getPropertyHandle( IStyleModel.HIGHLIGHT_RULES_PROP );