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