public void testFunctions() throws Exception {
final DRLParser parser = parseResource( "functions.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
assertEquals( 2,
pack.getRules().size() );
final List functions = pack.getFunctions();
assertEquals( 2,
functions.size() );
FunctionDescr func = (FunctionDescr) functions.get( 0 );
assertEquals( "functionA",