public function shouldWorkWhenUsingMultipleRules()
{
$from = new State('a');
$to = new State('b');
$rule = 'izzum\\rules\\TrueRule,izzum\\rules\\FalseRule';
$command = 'izzum\\command\\SimpleCommand';
// declared in this file
$object = new Context(new Identifier(Identifier::NULL_ENTITY_ID, Identifier::NULL_STATEMACHINE));
$transition = new Transition($from, $to, null, $rule);
$rule = $transition->getRule($object);
$this->assertTrue(is_a($rule, 'izzum\\rules\\AndRule'));
$this->assertFalse($rule->applies());
$this->assertEquals('((izzum\\rules\\TrueRule and izzum\\rules\\TrueRule) and izzum\\rules\\FalseRule)', $rule->toString());
}