"then\n" +
" list.add( $i + $j );\n" +
"end\n";
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
CompositeKnowledgeBuilder ckb = kbuilder.batch();
ckb.add( ResourceFactory.newByteArrayResource( str3.getBytes() ), ResourceType.DRL )
.add( ResourceFactory.newByteArrayResource( str1.getBytes() ), ResourceType.DRL )
.add( ResourceFactory.newByteArrayResource( str2.getBytes() ), ResourceType.DRL )
.build();
assertFalse( kbuilder.hasErrors() );