/**
  * @expectedException Sabre\DAV\Exception\PreconditionFailed
  */
 public function testAssignTagNotFound()
 {
     $this->tagMapper->expects($this->once())->method('assignTags')->with(111, 'files', '555')->will($this->throwException(new TagNotFoundException()));
     $this->node->createFile('555');
 }
 /**
  * @expectedException Sabre\DAV\Exception\Forbidden
  */
 public function testForbiddenCreateFile()
 {
     $this->node->createFile('555');
 }