final ObjectType list1ObjectType = new ClassObjectType( String.class );
final ObjectType list2ObjectType = new ClassObjectType( String.class );
final Rule rule = new Rule( "rule-1" );
final Pattern list1Pattern = new Pattern( 0,
list1ObjectType,
"s1" );
final Pattern list2Pattern = new Pattern( 1,
list2ObjectType,
"s2" );
rule.addPattern( list1Pattern );
rule.addPattern( list2Pattern );