}
@Test
public void testDecisionTableColumnsWithRHSBoundFacts() {
GuidedDecisionTable52 dt = new GuidedDecisionTable52();
Pattern52 p1 = new Pattern52();
p1.setFactType( "Driver" );
p1.setBoundName( "$p1" );
ConditionCol52 c1 = new ConditionCol52();
c1.setFactField( "name" );
c1.setConstraintValueType( BaseSingleFieldConstraint.TYPE_LITERAL );
c1.setBinding( "$c1" );
p1.getChildColumns().add( c1 );
dt.getConditions().add( p1 );
ActionInsertFactCol52 ins = new ActionInsertFactCol52();
ins.setBoundName( "$ins" );
ins.setFactField( "rating" );
ins.setFactType( "Person" );
ins.setType( SuggestionCompletionEngine.TYPE_STRING );
dt.getActionCols().add( ins );
ActionInsertFactCol52 ins2 = new ActionInsertFactCol52();
ins2.setInsertLogical( true );
ins2.setBoundName( "$ins2" );
ins2.setFactField( "rating2" );
ins2.setFactType( "Person2" );
ins2.setType( SuggestionCompletionEngine.TYPE_STRING );
dt.getActionCols().add( ins2 );
BRLActionColumn brlAction = new BRLActionColumn();
ActionInsertFact aif = new ActionInsertFact( "Person" );
aif.setBoundName( "$aif" );
aif.addFieldValue( new ActionFieldValue( "rating",
null,
SuggestionCompletionEngine.TYPE_STRING ) );
aif.fieldValues[0].nature = BaseSingleFieldConstraint.TYPE_LITERAL;
brlAction.getDefinition().add( aif );
dt.getActionCols().add( brlAction );
BRLRuleModel model = new BRLRuleModel( dt );
assertNotNull( model.getRHSBoundFacts() );
assertEquals( 3,