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
/**
	 * Tests one report design includes three libraries.
	 * 
	 * @throws Exception
	 *             if any exception
	 */
	public void testLoadDesignWithThreeLibrary( ) throws Exception
	{
		openDesign( "DesignWithThreeLibrary.xml" ); 
		List libraries = designHandle.getAllLibraries( );
		assertEquals( 3, libraries.size( ) );
		LibraryHandle libraryHandle1 = (LibraryHandle) libraries.get( 0 );
		LibraryHandle libraryHandle2 = (LibraryHandle) libraries.get( 1 );
		assertTrue( libraryHandle1.isValid( ) );
		assertTrue( libraryHandle2.isValid( ) );
		PropertyHandle propHandle = designHandle
				.getPropertyHandle( ReportDesignHandle.LIBRARIES_PROP );
		ArrayList list = propHandle.getListValue( );
		assertEquals( 3, list.size( ) );
		IncludedLibrary includeLibrary = (IncludedLibrary) list.get( 0 );
		assertEquals( "Library_1.xml", includeLibrary.getFileName( ) ); 
		assertEquals( "Lib1", includeLibrary.getNamespace( ) ); 
		includeLibrary = (IncludedLibrary) list.get( 1 );
		assertEquals( "Library_2.xml", includeLibrary.getFileName( ) ); 
		assertEquals( "Library_2", includeLibrary.getNamespace( ) ); 
		includeLibrary = (IncludedLibrary) list.get( 2 );
		assertEquals( "Library_3.xml", includeLibrary.getFileName( ) ); 
		assertEquals( "Lib3", includeLibrary.getNamespace( ) ); 
		assertEquals(
				"W.C. Fields", libraryHandle2.getStringProperty( Library.AUTHOR_PROP ) );