public function shouldGetExceptionForInvalidCommand()
{
$command_name = 'izzum\\statemachine\\utils\\CannotCreate';
$context = new Context(new Identifier('1', 'test'));
try {
$command = Utils::getCommand($command_name, $context);
$this->fail('should not come here, command should throw exception on failure');
} catch (Exception $e) {
$this->assertEquals(Exception::COMMAND_CREATION_FAILURE, $e->getCode());
$this->assertContains('cannot create', $e->getMessage());
$this->assertContains('objects to construction', $e->getMessage());
//echo $e->getMessage() . PHP_EOL;
}
}