public function testGetTransitionsByWorkflowItem()
 {
     $workflowName = 'test_workflow';
     $workflowItem = new WorkflowItem();
     $workflowItem->setWorkflowName($workflowName);
     $transition = new Transition();
     $transition->setName('test_transition');
     $transitions = new ArrayCollection(array($transition));
     $workflow = $this->createWorkflow($workflowName);
     $workflow->expects($this->once())->method('getTransitionsByWorkflowItem')->with($workflowItem)->will($this->returnValue($transitions));
     $this->workflowRegistry->expects($this->once())->method('getWorkflow')->with($workflowName)->will($this->returnValue($workflow));
     $this->assertEquals($transitions, $this->workflowManager->getTransitionsByWorkflowItem($workflowItem));
 }