/**
  * @expectedException \DomainException
  */
 public function testUpdateStorage($storageParams = null)
 {
     $backend = $this->backendService->getBackend('identifier:\\OCA\\Files_External\\Lib\\Backend\\SMB');
     $authMechanism = $this->backendService->getAuthMechanism('identifier:\\Auth\\Mechanism');
     $storage = new StorageConfig(255);
     $storage->setMountPoint('mountpoint');
     $storage->setBackend($backend);
     $storage->setAuthMechanism($authMechanism);
     $storage->setBackendOptions(['password' => 'testPassword']);
     $newStorage = $this->globalStoragesService->addStorage($storage);
     $retrievedStorage = $this->service->getStorage($newStorage->getId());
     $retrievedStorage->setMountPoint('abc');
     $this->service->updateStorage($retrievedStorage);
 }