fp0RightPatternClone.getFactType() );
}
@Test
public void testFromCompositeFactPattern() {
RuleModel model = new RuleModel();
model.lhs = new IPattern[1];
FromCompositeFactPattern fp0 = new FromCompositeFactPattern();
ExpressionFormLine efl0 = new ExpressionFormLine();
efl0.setBinding( "$efl0" );
ExpressionText efl0p0 = new ExpressionText( "efl0p0" );
efl0.appendPart( efl0p0 );
fp0.setExpression( efl0 );
FactPattern fp0FactPattern = new FactPattern( "fp0FactPattern" );
fp0.setFactPattern( fp0FactPattern );
model.lhs[0] = fp0;
RuleModelCloneVisitor cloneVisitor = new RuleModelCloneVisitor();
RuleModel clone = cloneVisitor.visitRuleModel( model );
assertEquals( 1,
clone.lhs.length );
assertNotSame( model.lhs[0],
clone.lhs[0] );