libraryHandle.includeLibrary( inputLibraryName1, "LibA" ); LibraryHandle libHandle = libraryHandle.getLibrary( "LibA" );  TableHandle tableLibHandle = (TableHandle)libHandle.findElement( "tableA" ); assertNotNull("Table should not be null", tableLibHandle); DataSourceHandle dataSourceLibHandle = (DataSourceHandle)libHandle.findDataSource( "mysql" ); assertNotNull("Datasource should not be null", dataSourceLibHandle); DataSetHandle dataSetLibHandle = (DataSetHandle)libHandle.findDataSet( "mysqlds" ); assertNotNull("Dataset should not be null", dataSetLibHandle);  TableHandle tableHandle = (TableHandle)libraryHandle.getElementFactory().newElementFrom( tableLibHandle, "tableA" ); DataSourceHandle dataSourceHandle = (DataSourceHandle)libraryHandle.getElementFactory().newOdaDataSource( "mysql" ); DataSetHandle dataSetHandle = (DataSetHandle)libraryHandle.getElementFactory().newOdaDataSet( "mysqlds" );   libraryHandle.getDataSources().add( dataSourceHandle ); libraryHandle.getDataSets().add( dataSetHandle );  assertNotNull(libraryHandle); super.saveLibraryAs(outputFileName);
libraryHandle.includeLibrary( inputLibraryName1, "LibA" ); LibraryHandle libHandle = libraryHandle.getLibrary( "LibA" );  TableHandle tableLibHandle = (TableHandle) libHandle .findElement( "tableA" ); assertNotNull( "Table should not be null", tableLibHandle ); DataSourceHandle dataSourceLibHandle = libHandle .findDataSource( "mysql" ); assertNotNull( "Datasource should not be null", dataSourceLibHandle ); DataSetHandle dataSetLibHandle = libHandle.findDataSet( "mysqlds" ); assertNotNull( "Dataset should not be null", dataSetLibHandle );  TableHandle tableHandle = (TableHandle) libraryHandle .getElementFactory( ) .newElementFrom( tableLibHandle, "tableA" ); DataSourceHandle dataSourceHandle = libraryHandle .getElementFactory( ) .newOdaDataSource( "mysql" ); DataSetHandle dataSetHandle = libraryHandle .getElementFactory( ) .newOdaDataSet( "mysqlds" );  libraryHandle.getDataSources( ).add( dataSourceHandle ); libraryHandle.getDataSets( ).add( dataSetHandle );  assertNotNull( libraryHandle ); super.saveLibraryAs( outputFileName );
	public void testIncludeLibrary( ) throws Exception	{		openLibrary( inputLibraryName2 );				libraryHandle.includeLibrary( inputLibraryName1, "LibA" );		LibraryHandle libHandle = libraryHandle.getLibrary( "LibA" );				TableHandle tableLibHandle = (TableHandle)libHandle.findElement( "tableA" );		assertNotNull("Table should not be null", tableLibHandle);		DataSourceHandle dataSourceLibHandle = (DataSourceHandle)libHandle.findDataSource( "mysql" );		assertNotNull("Datasource should not be null", dataSourceLibHandle);		DataSetHandle dataSetLibHandle = (DataSetHandle)libHandle.findDataSet( "mysqlds" );		assertNotNull("Dataset should not be null", dataSetLibHandle);				TableHandle tableHandle = (TableHandle)libraryHandle.getElementFactory().newElementFrom( tableLibHandle, "tableA" );		DataSourceHandle dataSourceHandle = (DataSourceHandle)libraryHandle.getElementFactory().newOdaDataSource( "mysql" );		DataSetHandle dataSetHandle = (DataSetHandle)libraryHandle.getElementFactory().newOdaDataSet( "mysqlds" );						libraryHandle.getDataSources().add( dataSourceHandle );		libraryHandle.getDataSets().add( dataSetHandle );				assertNotNull(libraryHandle);		super.saveLibraryAs(outputFileName);		assertTrue( compareTextFile( goldenFileName, outputFileName ) );	}