RuleModel m = RuleModelDRLPersistenceImpl.getInstance().unmarshal( drl,
Collections.EMPTY_LIST,
dmo );
assertTrue( m.lhs[ 1 ] instanceof FromCompositeFactPattern );
FromCompositeFactPattern factPattern = (FromCompositeFactPattern) m.lhs[ 1 ];
assertNotNull( factPattern.getFactPattern().getConstraintList() );
assertEquals( 1, factPattern.getFactPattern().getConstraintList().getNumberOfConstraints() );
SingleFieldConstraint constraint = (SingleFieldConstraint) factPattern.getFactPattern().getFieldConstraints()[ 0 ];
assertEquals( "Itinerario", constraint.getFactType() );
assertEquals( "destino", constraint.getFieldName() );
assertEquals( DataType.TYPE_STRING, constraint.getFieldType() );
assertEquals( "USA", constraint.getValue() );
assertEquals( "==", constraint.getOperator() );