public function testRecover()
{
$this->loggerMock->expects($this->once())->method('logCall');
$innerHandlerMock = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\Location\\Trash\\Handler');
$this->persistenceHandlerMock->expects($this->once())->method('trashHandler')->will($this->returnValue($innerHandlerMock));
$innerHandlerMock->expects($this->once())->method('recover')->with(33, 66)->will($this->returnValue(99));
$this->cacheMock->expects($this->at(0))->method('clear')->with('location', 'subtree')->will($this->returnValue(true));
$this->cacheMock->expects($this->at(1))->method('clear')->with('content')->will($this->returnValue(true));
$this->cacheMock->expects($this->at(2))->method('clear')->with('user', 'role', 'assignments', 'byGroup')->will($this->returnValue(true));
$handler = $this->persistenceCacheHandler->trashHandler();
$this->assertEquals(99, $handler->recover(33, 66));
}