@Test
public void testActionRetractFact() {
RuleModel model = new RuleModel();
model.rhs = new IAction[1];
ActionRetractFact arf = new ActionRetractFact();
arf.variableName = "$arf";
model.rhs[0] = arf;
RuleModelCloneVisitor cloneVisitor = new RuleModelCloneVisitor();
RuleModel clone = cloneVisitor.visitRuleModel( model );
assertEquals( 1,
clone.rhs.length );
assertNotSame( model.rhs[0],
clone.rhs[0] );
assertNotNull( clone.rhs[0] );
assertTrue( clone.rhs[0] instanceof ActionRetractFact );
ActionRetractFact arfClone = (ActionRetractFact) clone.rhs[0];
assertEquals( "$arf",
arfClone.variableName );
}