PatternPossibility pp1 = new PatternPossibility();
pp1.setRuleName(ruleName1);
PatternPossibility pp2 = new PatternPossibility();
pp2.setRuleName(ruleName1);
RulePossibility rp1 = new RulePossibility();
rp1.setRuleName(ruleName1);
rp1.add(pp1);
rp1.add(pp2);
PatternPossibility pp3 = new PatternPossibility();
pp3.setRuleName(ruleName2);
RulePossibility rp2 = new RulePossibility();
rp2.setRuleName(ruleName2);
rp2.add(pp3);
Redundancy redundancy1 = new Redundancy(pp1, pp3);
PartialRedundancy pr1 = new PartialRedundancy(rp1, rp2, redundancy1);
PartialRedundancy pr2 = new PartialRedundancy(rp2, rp1, redundancy1);