recoverOriginalLibrary( "LibraryToReload_backup.xml", "LibraryToReload.xml" );  compareTextFile( "DesignToReloadLibrary_golden_1.xml");
compareTextFile( "DesignToReloadLibrary_golden_1.xml" );
	public void testReloadLibraryWithException( ) throws Exception	{		openDesign( "DesignToReloadLibrary.xml" ); //$NON-NLS-1$		// make modification on its library.		openLibrary( "Library_1.xml" );//$NON-NLS-1$		try		{			designHandle.reloadLibrary( libraryHandle );			fail( );		}		catch ( SemanticException e )		{			assertEquals( LibraryException.DESIGN_EXCEPTION_LIBRARY_NOT_FOUND,					e.getErrorCode( ) );		}		recoverOriginalLibrary( "LibraryToReload_backup.xml", //$NON-NLS-1$				"LibraryToReload.xml" ); //$NON-NLS-1$		openLibrary( "LibraryToReload.xml" ); //$NON-NLS-1$		File f = new File( getClassFolder( ) + INPUT_FOLDER				+ "LibraryToReload.xml" ); //$NON-NLS-1$		if ( f.exists( ) )			f.delete( );		designHandle.reloadLibrary( libraryHandle );		assertNull( designHandle.findElement( "table1" ).getExtends( ) ); //$NON-NLS-1$		assertNotNull( designHandle				.findElement( "table1" ).getStringProperty( DesignElementHandle.EXTENDS_PROP ) ); //$NON-NLS-1$		File f1 = new File( getClassFolder( ) + INPUT_FOLDER				+ "LibraryToReload_errors.xml" ); //$NON-NLS-1$		FileInputStream fis = new FileInputStream( f1 );		FileOutputStream fos = new FileOutputStream( f );		byte[] data = new byte[10000];		fis.read( data );		fos.write( data );		fis.close( );		fos.close( );		try		{			designHandle.reloadLibrary( libraryHandle );			fail( );		}		catch ( LibraryException e )		{			save( ); 		}		recoverOriginalLibrary( "LibraryToReload_backup.xml", //$NON-NLS-1$				"LibraryToReload.xml" ); //$NON-NLS-1$		compareTextFile( "DesignToReloadLibrary_golden_1.xml"); //$NON-NLS-1$	}