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
DesignElement element2 = new MockupDesignElement( elemDefn2 );
		UserPropertyDefn up1 = new UserPropertyDefn( );
		up1.setName( "UP1" ); 
		UserPropertyDefn up2 = new UserPropertyDefn( );
		up2.setName( "UP2" ); 
		element1.addUserPropertyDefn( up1 );
		element1.addUserPropertyDefn( up2 );
		element2.addUserPropertyDefn( up1 );
		handle1 = new FakeElementHandle( design, element1 );
		handle2 = new FakeElementHandle( design, element2 );
		elements = new ArrayList( );
		elements.add( handle1 );
		elements.add( handle2 );
		groupElementHandle = new SimpleGroupElementHandle( designHandle,
				elements );
		commProperties = groupElementHandle.getCommonProperties( );
		assertEquals( 1, commProperties.size( ) );
		
		elemDefn1 = new MockupElementDefn( );
		elemDefn2 = new MockupElementDefn( );
		elemDefn1.addProperty( prop1 );
		elemDefn1.addProperty( prop2 );
		elemDefn2.addProperty( prop1 );
		elemDefn1.build( );
		elemDefn2.build( );
		handle1 = new FakeElementHandle( design, new MockupDesignElement(
				elemDefn1 ) );
		handle2 = new FakeElementHandle( design, new MockupDesignElement(
				elemDefn2 ) );
		elements = new ArrayList( );