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
{
		openLibrary( "CompatibleLibraryTheme.xml" ); 
		saveLibrary( );
		assertTrue( compareFile( "CompatibleLibraryTheme_golden.xml" ) ); 
	}
	/**
	 * Test the meachanism to check the duplidate style name in one theme.
	 * 
	 * @throws Exception
	 */
	public void testCanContainStyle( ) throws Exception
	{
		createLibrary( );
		ThemeHandle theme = libraryHandle.getElementFactory( ).newTheme(
				"testTheme" ); 
		StyleHandle style1 = libraryHandle.getElementFactory( ).newStyle(
				"sytle1" ); 
		StyleHandle style2 = libraryHandle.getElementFactory( ).newStyle(
				"sytle1" ); 
		theme.getStyles( ).add( style1 );
		try
		{
			theme.getStyles( ).add( style2 );
			fail( );
		}
		catch ( NameException e )
		{
			assertEquals( NameException.DESIGN_EXCEPTION_DUPLICATE, e
					.getErrorCode( ) );
		}