/**
  * @test
  */
 public function createNodeFromTemplateUsesIdentifierFromTemplate()
 {
     $identifier = \TYPO3\Flow\Utility\Algorithms::generateUUID();
     $template = new \TYPO3\TYPO3CR\Domain\Model\NodeTemplate();
     $template->setName('new-node');
     $template->setIdentifier($identifier);
     $rootNode = $this->context->getRootNode();
     $newNode = $rootNode->createNodeFromTemplate($template);
     $this->assertSame($identifier, $newNode->getIdentifier());
 }
 /**
  * @test
  * @expectedException \InvalidArgumentException
  */
 public function setNameWithInvalidNameThrowsException()
 {
     $nodeTemplate = new \TYPO3\TYPO3CR\Domain\Model\NodeTemplate();
     $nodeTemplate->setName(',?/invalid-node-name');
 }