StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
//adding test data
Bar[] barList = new Bar[3];
for (int i = 0; i < barList.length; i++) {
barList[i] = new Bar( String.valueOf( i ) );
}
org.drools.Foo[] fooList = new org.drools.Foo[4];
for (int i = 0; i < fooList.length; i++) {
fooList[i] = new org.drools.Foo( String.valueOf( i ), i == 3 ? barList[2] : barList[i] );