public void testParseAggregateFields() throws SOQLParserException {
SOQLInfo info = new SOQLInfo("SELECT max(fld) xXx FROM account blarney");
assertEquals("blarney", info.getTableAlias());
assertEquals("account", info.getTableName());
assertEquals(1, info.getSelectedFields().size());
SOQLFieldInfo fieldInfo = info.getSelectedFields().get(0);
assertEquals("max", fieldInfo.getAggregateFunction());
assertEquals("xXx", fieldInfo.getAlias());
assertEquals("fld", fieldInfo.getFieldName());
}