clone.metadataList[1].value );
}
@Test
public void testActionInsertFact() {
RuleModel model = new RuleModel();
model.rhs = new IAction[2];
ActionInsertFact aif0 = new ActionInsertFact( "AIF0" );
aif0.setBoundName( "$t0" );
ActionFieldValue aif0f0 = new ActionFieldValue( "AIF0F0",
"AIF0F0Value",
SuggestionCompletionEngine.TYPE_STRING );
aif0f0.setNature( BaseSingleFieldConstraint.TYPE_LITERAL );
aif0.addFieldValue( aif0f0 );
ActionFieldValue aif0f1 = new ActionFieldValue( "AIF0F1",
"AIF0F1Value",
SuggestionCompletionEngine.TYPE_STRING );
aif0f0.setNature( BaseSingleFieldConstraint.TYPE_LITERAL );
aif0.addFieldValue( aif0f1 );
model.rhs[0] = aif0;
ActionInsertFact aif1 = new ActionInsertFact( "AIF1" );
aif1.setBoundName( "$t1" );
ActionFieldValue aif1f0 = new ActionFieldValue( "AIF1F0",
"AIF1F0Value",
SuggestionCompletionEngine.TYPE_STRING );
aif1f0.setNature( BaseSingleFieldConstraint.TYPE_LITERAL );
aif1.addFieldValue( aif1f0 );
ActionFieldValue aif1f1 = new ActionFieldValue( "AIF1F1",
"AIF1F1Value",
SuggestionCompletionEngine.TYPE_STRING );
aif1f1.setNature( BaseSingleFieldConstraint.TYPE_LITERAL );
aif1.addFieldValue( aif1f1 );
model.rhs[1] = aif1;
RuleModelCloneVisitor cloneVisitor = new RuleModelCloneVisitor();
RuleModel clone = cloneVisitor.visitRuleModel( model );
assertEquals( 2,
clone.rhs.length );
assertNotSame( model.rhs[0],