[DROOLS-7] fix infinite loop in JPA tests using traits