Bug 186940 Style name in theme cannot be identify by auto when reopen the library[01]
Description: Style name in theme cannot be identify by auto when reopen the library[01] Step: 1.Open a library and add a theme 2.New a style on the theme and use the default name that is "NewStyle" 3.Save the library, close it and reopen it again. 4.New another style on the same theme Actual result: The default style name on second times is also "NewStyle" Exception result: The default style name on second times is "NewStyle1"
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/GroupElementHandleTest.java
designHandle.getComponents( ).add( baseLabel );
		designHandle.getComponents( ).add( baseText );
		LabelHandle element1 = elemFactory.newLabel( "label" ); 
		TextItemHandle element2 = elemFactory.newTextItem( "text" ); 
		element1.setExtends( baseLabel );
		element2.setExtends( baseText );
		elements.add( element2 );
		elements.add( element1 );
		GroupElementHandle groupElementHandle = new SimpleGroupElementHandle(
				designHandle, elements );
		assertTrue( groupElementHandle.isExtendedElements( ) );
		element2.setExtends( null );
		assertFalse( groupElementHandle.isExtendedElements( ) );
	}
	/**
	 * Tests 'hasLocalPropertiesForExtendedElements' method.
	 * <ul>
	 * <li> Label has 'name' properties, can't enable restore.</li>
	 * <li> Get label without any property inside grid element.</li>
	 * <li> Modify one property of label and 'restore' button should be enabled.</li>
	 * <li> Modify one property of label in grid and 'restore' button should be
	 * enabled.</li>
	 * </ul>
	 * 
	 * @throws Exception
	 *             any exception
	 */
	public void testExtendsItemHasLocalProperties( ) throws Exception
	{
		openDesign( "GroupElementHandleTest.xml" );