I’m trying to test some rules from a junit test. Inside the rule the fact is modified.

 

The fact is setup so that it matches the then condition in the rule, but still my asserts are failing in my test.

 

How do I get the fact back from the session, after the rules are fired.

 

Can someone point me to a link that has samples for testing a rule from a junit test. Its hard to find.

 

Thanks

RK.