// Prepare global parameter
List globalList = new ArrayList();
Map sessionProperties = new HashMap();
sessionProperties.put("list", globalList);
StatelessRuleService instance = StatelessRuleServiceJsr94.builder()
.ruleServiceProvider(new RuleServiceProviderImpl())
.ruleSource(getClass().getResourceAsStream(ruleDrl))
.sessionProperties(sessionProperties)
.bulid();
// Execute rule
Person firstPerson = new Person(3L, "chencao");
instance.executeRules(Arrays.asList(firstPerson));
// FirstPerson hasn't been changed
assertEquals(300, firstPerson.getId().longValue());
// Validate global