Bug 182680 Use feature of new Aggregation framework of Data Engine.
DataEngine will implement new aggregation framework in 2.2.0RC0. After the implementation is finished Engine should go ahead to use new column bindings in definition of map/highlight.
engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilderTest.java
}
	private void testGrid( Report report, ReportItemDesign item )
	{
		assertTrue( item.getQuery( ) instanceof QueryDefinition );
		assertTrue( report.getQueries( ).contains( item.getQuery( ) ) );
		assertEquals( 1, ( (QueryDefinition)item.getQuery( ) ).getResultSetExpressions( ).size( ) );
	}
	private void testList( Report report, ReportItemDesign item )
	{
		ListItemDesign list = (ListItemDesign) item;
		assertTrue( item.getQuery( ) instanceof QueryDefinition );
		assertTrue( report.getQueries( ).contains( item.getQuery( ) ) );
		assertEquals( 1, ( (QueryDefinition)item.getQuery( ) ).getResultSetExpressions( ).size( ) );
		assertEquals( 1, ( (QueryDefinition)item.getQuery( ) ).getGroups( ).size( ) );
		assertTrue( ( (QueryDefinition)item.getQuery( ) ).usesDetails( ) );
		assertEquals( 1, ( (QueryDefinition)item.getQuery( ) ).getSubqueries( ).size( ) );
		ListBandDesign listHeader = (ListBandDesign) list.getHeader( );
		TableItemDesign table = (TableItemDesign) listHeader.getContent( 0 );
		assertTrue( table.getQuery( ) instanceof QueryDefinition );
		assertTrue( report.getQueries( ).contains( table.getQuery( ) ) );
		table = (TableItemDesign) listHeader.getContent( 1 );
		assertTrue( table.getQuery( ) instanceof SubqueryDefinition );
		assertTrue( ( (QueryDefinition)list.getQuery( ) ).getSubqueries( ).contains(
				table.getQuery( ) ) );
		GroupDesign group = list.getGroup( 0 );
		assertEquals( 1, ( (QueryDefinition)list.getQuery( ) ).getGroups( ).size( ) );
		GroupDefinition grp = (GroupDefinition) ( (QueryDefinition)list.getQuery( ) ).getGroups( )
				.get( 0 );
		ListBandDesign groupHeader = (ListBandDesign) group.getHeader( );
		table = (TableItemDesign) groupHeader.getContent( 0 );