public function testReleaseLockOnRepositoryError()
 {
     $this->lockManager->expects($this->once())->method('obtain')->with($this->equalTo('foo'));
     $this->repository->expects($this->once())->method('load')->will($this->throwException(new RuntimeException('Runtime')));
     $this->lockManager->expects($this->once())->method('release')->with($this->equalTo('foo'));
     $this->createRepository()->load('foo');
 }