Bug 200480 Failure occurs in JUnit test of org.eclipse.birt.report.engine.tests in daily build 20070820
engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/api/CachedImageHandlerTest.java
IReportEngine engine = new ReportEngine( config );
		
		
		IReportRunnable report = engine.openReportDesign( REPORT_DESIGN );
		IRunTask task = engine.createRunTask( report );
		task.run( REPORT_DOCUMENT );
		task.close( );
		IReportDocument document = engine.openReportDocument( REPORT_DOCUMENT );
		
		IRenderTask render = engine.createRenderTask( document );
		HTMLRenderOption options = new HTMLRenderOption( );
		options.setOutputFormat( "html" );
		options.setOutputStream( new ByteArrayOutputStream( ) );
		render.setRenderOption( options );
		render.render( );
		render.close( );
		assertEquals( 1, imageHandler.customImageCount );
		
		render = engine.createRenderTask( document );
		render.setRenderOption( options );
		render.render( );
		render.close( );
		assertEquals( 1, imageHandler.cachedImageCount );
		assertEquals( 1, imageHandler.customImageCount );
		assertEquals( 1, imageHandler.fileImageCount );
		document.close( );
		engine.shutdown( );
	}
	class CachedImageHandler extends HTMLImageHandler
	{