public void testFindColumnWithAlias() throws Exception {
DataContext dataContext = EasyMock.createMock(DataContext.class);
MutableTable table1 = new MutableTable("foo");
table1.addColumn(new MutableColumn("col1").setTable(table1));
table1.addColumn(new MutableColumn("col2").setTable(table1));
table1.addColumn(new MutableColumn("col3").setTable(table1));
MutableTable table2 = new MutableTable("bar");
table2.addColumn(new MutableColumn("col1").setTable(table2));
table2.addColumn(new MutableColumn("col2").setTable(table2));
table2.addColumn(new MutableColumn("col3").setTable(table2));
Query query = new Query().from(table1, "f").from(table2, "b");
GroupedQueryBuilderImpl gqbi = new GroupedQueryBuilderImpl(dataContext,
query);