public void testFactBindings() throws Exception {
KnowledgeBase kbase = SerializationHelper.serializeObject( loadKnowledgeBase( "test_FactBindings.drl" ) );
StatefulKnowledgeSession ksession = createKnowledgeSession( kbase );
RuleRuntimeEventListener wmel = mock( RuleRuntimeEventListener.class );
ksession.addEventListener( wmel );
final Person bigCheese = new Person( "big cheese" );
final Cheese cheddar = new Cheese( "cheddar",
15 );
bigCheese.setCheese( cheddar );