Bug 201396 Exception is thrown out when a chart use the list shared result set [0005]
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/binding/QueryCacheTest.java
{
	protected DataSourceInfo getDataSourceInfo( )
	{
		return new DataSourceInfo( ConfigText.getString( "Binding.TestData.TableName" ),
				ConfigText.getString( "Binding.TestData.TableSQL" ),
				ConfigText.getString( "Binding.TestData.TestDataFileName" ) );
	}
	
	/**
	 * 
	 * @throws Exception
	 */
	public void testBasicCache( ) throws Exception
	{
		QueryDefinition query = new QueryDefinition();
		query.setDataSetName( this.dataSet.getName( ) );
		query.setAutoBinding( true );
		query.setCacheQueryResults( true );
		IQueryResults queryResults = this.dataEngine.prepare( query ).execute( null );
		String id = queryResults.getID( );
		IResultIterator it = queryResults.getResultIterator( );
		
		IQueryResults result = this.dataEngine.getQueryResults( id );
		it = result.getResultIterator( );
		this.outputQueryResult( it, new String[]{"CITY", "AMOUNT"} );
		this.checkOutputFile( );
	}
}