LiteralRestriction lr1 = new LiteralRestriction();
lr1.setRuleName(ruleName1);
LiteralRestriction lr2 = new LiteralRestriction();
lr2.setRuleName(ruleName1);
PatternPossibility pp1 = new PatternPossibility();
pp1.setRuleName(ruleName1);
pp1.add(lr1);
pp1.add(lr2);
LiteralRestriction lr3 = new LiteralRestriction();
lr3.setRuleName(ruleName2);
PatternPossibility pp2 = new PatternPossibility();
pp2.setRuleName(ruleName2);
pp2.add(lr3);
Redundancy redundancy1 = new Redundancy(lr1, lr3);
PartialRedundancy pr1 = new PartialRedundancy(pp1, pp2, redundancy1);
PartialRedundancy pr2 = new PartialRedundancy(pp2, pp1, redundancy1);