String ruleStringA = "[(?a P ?b) -> (?a Q ?b)]";
Resource root = resourceInModel
( "x rdf:type ja:RuleSet; x ja:rules y"
+ "; y rdf:type ja:RuleSet; y ja:rule '" + ruleStringA.replaceAll( " ", "\\\\s" ) + "'" );
Set<Rule> expected = new HashSet<Rule>( Rule.parseRules( ruleStringA ) );
RuleSet rules = (RuleSet) a.open( root );
assertEquals( expected, new HashSet<Rule>( rules.getRules() ) );
}
public void testTrapsBadRulesObject()
{