" $f : Foo( name == 'bar' ) " +
"then " +
" modify( $f ) { setAge( 99 ); } " +
"end ";
KieHelper helper = new KieHelper();
helper.addContent( str1, ResourceType.DRL );
helper.addContent( str2, ResourceType.DRL );
helper.addContent( str3, ResourceType.DRL );
helper.addContent( str4, ResourceType.DRL );
List<Message> msg = helper.verify().getMessages( Message.Level.ERROR );
System.out.println( msg );
assertEquals( 0, msg.size() );
KieBase kieBase = helper.build();
FactType type = kieBase.getFactType( "org.kie1", "Foo" );
assertEquals( 2, type.getFields().size() );
Object foo = null;
try {