public function shouldTransitionWithCallable()
{
$context = new Context(new Identifier('123', 'foo-machine'));
$event = 'foo';
$a = new State('a');
$b = new State('b');
$x = 0;
$transition_callable = function ($entity) {
$entity->setEntityId('234');
};
$t = new Transition($a, $b, $event, null, null, null, $transition_callable);
$this->assertEquals('123', $context->getEntityId());
$t->process($context);
$this->assertEquals('234', $context->getEntityId());
}