public function testRuleById()
 {
     $ruleSet = new RuleSet();
     $rule = new Rule($this->pool, array(), 'job1', null);
     $ruleSet->add($rule, RuleSet::TYPE_JOB);
     $this->assertSame($rule, $ruleSet->ruleById(0));
 }