Bug 202030 Failures occur in Junit test of org.eclipse.birt.report.engine.tests in daily build 20070903
engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/ir/EngineIRReaderTest.java
}
	/**
	 * Used to create the current stream wrote by current version EngineWriter.
	 * The file will be stored in eclipse folder. Please copy it here and commit it to CVS.
	 * 
	 * now the version is 2
	 * 
	 * @throws Exception
	 */
	public void writeGolden( ) throws Exception
	{
		
		ReportParser parser = new ReportParser( );
		Report report = parser.parse( ".", this.getClass( )
				.getResourceAsStream( DESIGN_STREAM ) );
		assertTrue( report != null );
		
		ByteArrayOutputStream out = new ByteArrayOutputStream( );
		new EngineIRWriter( ).write( out, report );
		out.close( );
		File file = new File( GOLDEN_V2_STREAM );
		if ( !file.exists( ) )
		{
			file.createNewFile( );
			RandomAccessFile rf = new RandomAccessFile( file, "rw" );
			rf.write( out.toByteArray( ) );
		}
	}
}