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
assertTrue( table.getQuery( ) instanceof QueryDefinition );
		assertTrue( report.getQueries( ).contains( table.getQuery( ) ) );
		table = (TableItemDesign) groupHeader.getContent( 1 );
		assertTrue( table.getQuery( ) instanceof SubqueryDefinition );
		assertTrue( grp.getSubqueries( ).contains( table.getQuery( ) ) );
		ListBandDesign groupFooter = (ListBandDesign) group.getFooter( );
		table = (TableItemDesign) groupFooter.getContent( 0 );
		assertTrue( table.getQuery( ) instanceof QueryDefinition );
		assertTrue( report.getQueries( ).contains( table.getQuery( ) ) );
		table = (TableItemDesign) group.getFooter( ).getContent( 1 );
		assertTrue( table.getQuery( ) instanceof SubqueryDefinition );
		assertTrue( grp.getSubqueries( ).contains( table.getQuery( ) ) );
		ListBandDesign listDetail = (ListBandDesign) list.getDetail( );
		assertTrue( report.getQueries( ).contains(
				listDetail.getContent( 0 ).getQuery( ) ) );
		assertTrue( listDetail.getContent( 0 ).getQuery( ) instanceof QueryDefinition );
	}
	private void testTable( Report report, ReportItemDesign item )
	{
		assertTrue( item.getQuery( ) instanceof QueryDefinition );
		IQueryDefinition query = (IQueryDefinition)item.getQuery( );
		assertTrue( query.getSorts( ).size( ) == 2 );
		assertTrue( query.getFilters( ).size( ) == 1 );
		assertTrue( query.getResultSetExpressions( ).size( ) == 29 );
		
		GroupDefinition grp = (GroupDefinition)( (QueryDefinition)item.getQuery( ) ).getGroups( ).get( 0 );
		assertTrue( grp.getSorts( ).size( ) == 2 );
		assertTrue( grp.getFilters( ).size( ) == 1 );
	}
}