Drools-543

Added a test case and a simple solution (Credits go to @sotty)