"type" ) );
pattern = new PatternDescr( "query1" );
pattern.setQuery( true );
lhs.addDescr( pattern );
ExprConstraintDescr expr = new ExprConstraintDescr("'bobba'");
expr.setPosition( 0 );
expr.setType( Type.POSITIONAL );
pattern.addConstraint(expr);
expr = new ExprConstraintDescr("$age");
expr.setPosition( 1 );
expr.setType( Type.POSITIONAL );
pattern.addConstraint( expr );
expr = new ExprConstraintDescr("$type");
expr.setPosition( 2 );
expr.setType( Type.POSITIONAL );
pattern.addConstraint( expr );
ruleDescr.setConsequence( "System.out.println(\"age: \" + $age);" );
builder.addPackage( packageDescr );
assertLength( 0,