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/ElementFactoryTest.java
* 
 * <tr>
 * <td>{@link #testNewElement()}</td>
 * <td>Creates the new elements.</td>
 * <td>elements are created successfully.</td>
 * </tr>
 * 
 * </table>
 */
public class ElementFactoryTest extends BaseTestCase
{
	protected void setUp( ) throws Exception
	{
		super.setUp( );
		designHandle = new SessionHandle( ULocale.getDefault( ) )
				.createDesign( );
		design = (ReportDesign) designHandle.getModule( );
	}
	/**
	 * Test the generic create element factory method.Create every type of
	 * element which was defined in reportDesignConstents.
	 * 
	 */
	public void testNewElement( )
	{
		ElementFactory factory = new ElementFactory( design );
		DesignElementHandle element = factory.newElement(
				ReportDesignConstants.DATA_ITEM, null );
		assertTrue( element instanceof DataItemHandle );
		element = factory.newElement( ReportDesignConstants.CELL_ELEMENT, null );