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
elements1.add( formHandle );
		elements1.add( elemFactory.newOdaDataSource( "ex", null ) ); 
		elements1
				.add( new SlotHandle( formHandle, FreeForm.REPORT_ITEMS_SLOT ) );
		GroupElementHandle groupElementHandle1 = new SimpleGroupElementHandle(
				designHandle, elements1 );
		assertEquals( 0, groupElementHandle1.getCommonProperties( ).size( ) );
	}
	/**
	 * Tests isSameType() method in GroupElementHandle.
	 */
	public void testIsSameType( )
	{
		
		ArrayList elements = new ArrayList( );
		elements.add( elemFactory.newOdaDataSource( "ex1", null ) ); 
		elements.add( elemFactory.newScriptDataSource( "script1" ) ); 
		GroupElementHandle groupElementHandle = new SimpleGroupElementHandle(
				designHandle, elements );
		assertFalse( groupElementHandle.isSameType( ) );
		
		ArrayList elements2 = new ArrayList( );
		elements2.add( elemFactory.newOdaDataSource( "ex", null ) ); 
		elements2.add( elemFactory.newOdaDataSource( "ex", null ) ); 
		GroupElementHandle groupElementHandle2 = new SimpleGroupElementHandle(
				designHandle, elements2 );
		assertTrue( groupElementHandle2.isSameType( ) );
		
		ArrayList elements3 = new ArrayList( );
		FreeFormHandle formHandle = elemFactory.newFreeForm( "ex" );