@Test
public void testFreeFormLine() {
RuleModel model = new RuleModel();
model.lhs = new IPattern[1];
FreeFormLine ffl0 = new FreeFormLine();
ffl0.text = "ffl0";
model.lhs[0] = ffl0;
RuleModelCloneVisitor cloneVisitor = new RuleModelCloneVisitor();
RuleModel clone = cloneVisitor.visitRuleModel( model );
assertEquals( 1,
clone.lhs.length );
assertNotSame( model.lhs[0],
clone.lhs[0] );
assertNotNull( clone.lhs[0] );
assertTrue( clone.lhs[0] instanceof FreeFormLine );
FreeFormLine ffl0Clone = (FreeFormLine) clone.lhs[0];
assertEquals( ffl0.text,
ffl0Clone.text );
}