Bug 183918 get relative file path of linkage library
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/library/DesignLoadLibraryTest.java
SimpleMasterPageHandle masterPageHandle = (SimpleMasterPageHandle) designHandle
				.getElementByID( 74 );
		SimpleMasterPageHandle parentHandle = (SimpleMasterPageHandle) masterPageHandle
				.getExtends( );
		DesignElementHandle handle = parentHandle.getPageHeader( ).get( 0 );
		assertEquals( "NewGrid", handle.getName( ) ); 
		handle = masterPageHandle.getPageHeader( ).get( 0 );
		assertEquals( "NewGrid211", handle.getName( ) );
		GridHandle gridHandle = (GridHandle) designHandle.getBody( ).get( 2 );
		assertEquals( "NewGrid", gridHandle.getName( ) ); 
		LabelHandle labelHandle = (LabelHandle) designHandle.getBody( ).get( 1 );
		assertEquals( "label", labelHandle.getName( ) ); 
		assertEquals( "label", labelHandle.getExtends( ).getName( ) ); 
	}
	/**
	 * A design include the same library twice.
	 * 
	 * @throws DesignFileException
	 */
	public void testLoadDesignWithSameLibraryFiles( )
			throws DesignFileException
	{
		openDesign( "DesignWithSameLibraryFiles.xml" ); 
		List errors = designHandle.getErrorList( );
		assertEquals( 1, errors.size( ) );
		ErrorDetail error1 = (ErrorDetail) errors.get( 0 );
		assertEquals(
				LibraryException.DESIGN_EXCEPTION_LIBRARY_ALREADY_INCLUDED,
				error1.getErrorCode( ) );
	}