assertEquals( "Person",
pattern.getObjectType() );
assertEquals( 1,
pattern.getConstraint().getDescrs().size() );
ExprConstraintDescr fld = (ExprConstraintDescr) pattern.getConstraint().getDescrs().get( 0 );
assertEquals( "age > 30 && < 40",
fld.getExpression() );
// the second col, with 2 fields, the first with 2 restrictions, the
// second field with one
pattern = (PatternDescr) rule.getLhs().getDescrs().get( 1 );
assertEquals( "Vehicle",
pattern.getObjectType() );
assertEquals( 2,
pattern.getConstraint().getDescrs().size() );
fld = (ExprConstraintDescr) pattern.getConstraint().getDescrs().get( 0 );
assertEquals( "type not in ( \"sedan\", \"wagon\" )",
fld.getExpression() );
// now the second field
fld = (ExprConstraintDescr) pattern.getConstraint().getDescrs().get( 1 );
assertEquals( "age < 3",
fld.getExpression() );
}