session = getSerialisedStatefulSession( session );
session.insert( new FactA( 15 ) );
session.insert( new FactB( 20 ) );
session.insert( new FactC( 27 ) );
session.insert( new FactC( 52 ) );
session = getSerialisedStatefulSession( session );
session.fireAllRules();
assertEquals( 6,
((List) session.getGlobal( "list" )).size() );
assertEquals( new FactC( 52 ),
((List) session.getGlobal( "list" )).get( 5 ) );
session = getSerialisedStatefulSession( session );
session.fireAllRules();
assertEquals( 7,
((List) session.getGlobal( "list" )).size() );
assertEquals( new FactC( 27 ),
((List) session.getGlobal( "list" )).get( 6 ) );
}