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
elements );
		groupElementHandle.clearLocalProperties( );
		assertNotNull( label1.getExtends( ) );
		assertNotNull( label2.getExtends( ) );
		
		ElementFactory elemFactory = new ElementFactory( design );
		DesignElementHandle masterPage1 = elemFactory
				.newGraphicMasterPage( "page1" ); 
		designHandle.getMasterPages( ).add( masterPage1 );
		elements.clear( );
		elements.add( masterPage1 );
		elements.add( label1 );
		groupElementHandle = new SimpleGroupElementHandle( designHandle,
				elements );
		groupElementHandle.clearLocalProperties( );
	}
	/**
	 * test isExtendedElements().
	 * 
	 * @throws NameException
	 * @throws ContentException
	 * @throws ExtendsException
	 * 
	 */
	public void testIsExtendedElements( ) throws ContentException,
			NameException, ExtendsException
	{
		ArrayList elements = new ArrayList( );
		LabelHandle baseLabel = elemFactory.newLabel( "baseLabel" ); 
		TextItemHandle baseText = elemFactory.newTextItem( "baseText" );