Bug 176450 Support link to CSS Feature(Model Part)
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/library/LibraryThemeTest.java
* 
	 * <ul>
	 * <li>Rename a style with duplicate name. The result is that NameException
	 * is thrown.
	 * </ul>
	 * 
	 * @throws Exception
	 */
	public void testRenameStyleInTheme( ) throws Exception
	{
		createLibrary( );
		ElementFactory libFactory = libraryHandle.getElementFactory( );
		ThemeHandle theme = libFactory.newTheme( "them1" ); 
		libraryHandle.getThemes( ).add( theme );
		StyleHandle style = libFactory.newStyle( "style1" );		
		theme.getStyles( ).add( style );
		style = libFactory.newStyle( "style2" );		
		theme.getStyles( ).add( style );
		try
		{
			style.setName( "style1" ); 	
			fail( );
		}
		catch ( NameException e )
		{
			assertEquals( NameException.DESIGN_EXCEPTION_DUPLICATE, e
					.getErrorCode( ) );
		}
	}
	class MyListener implements Listener