/**
  * @expectedException \Oro\Bundle\WorkflowBundle\Exception\WorkflowException
  * @expectedExceptionMessage Entity \DateTime is not configurable
  */
 public function testNotConfigurableEntityException()
 {
     $entityClass = '\\DateTime';
     $workflowConfigProvider = $this->getMockBuilder('Oro\\Bundle\\EntityConfigBundle\\Provider\\ConfigProvider')->disableOriginalConstructor()->getMock();
     $workflowConfigProvider->expects($this->once())->method('hasConfig')->with($entityClass)->will($this->returnValue(false));
     $workflowConfigProvider->expects($this->never())->method('getConfig');
     $this->configManager->expects($this->once())->method('getProvider')->with('workflow')->will($this->returnValue($workflowConfigProvider));
     $this->workflowManager->deactivateWorkflow($entityClass);
 }