[DROOLS-560] Added unit test to reproduce the problem.