Resource root = resourceInModel
( "x rdf:type ja:RuleSet"
+ "; x ja:rule '" + ruleStringA.replaceAll( " ", "\\\\s" ) + "'"
+ "; x ja:rule '" + ruleStringB.replaceAll( " ", "\\\\s" ) + "'"
);
RuleSet rules = (RuleSet) a.open( root );
Set<Rule> expected = new HashSet<Rule>( Rule.parseRules( ruleStringA ) );
expected.addAll( Rule.parseRules( ruleStringB ) );
assertEquals( expected, new HashSet<Rule>( rules.getRules() ) );
}