AndDescr and = (AndDescr) col.getConstraint();
assertEquals( 2,
and.getDescrs().size() );
final FieldBindingDescr field = (FieldBindingDescr) and.getDescrs().get( 0 );
final PredicateDescr pred = (PredicateDescr) and.getDescrs().get( 1 );
assertEquals( "age",
field.getFieldName() );
assertEquals( "$age2",
field.getIdentifier() );
assertEqualsIgnoreWhitespace( "$age2 == $age1+2",
(String) pred.getContent() );
assertFalse( parser.getErrorMessages().toString(),
parser.hasErrors() );
}