public function testLoadCacheIsMiss()
{
$this->loggerMock->expects($this->once())->method('logCall');
$cacheItemMock = $this->getMock('Stash\\Interfaces\\ItemInterface');
$this->cacheMock->expects($this->once())->method('getItem')->with('section', 33)->will($this->returnValue($cacheItemMock));
$cacheItemMock->expects($this->once())->method('isMiss')->will($this->returnValue(true));
$innerHandlerMock = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\Section\\Handler');
$this->persistenceHandlerMock->expects($this->once())->method('sectionHandler')->will($this->returnValue($innerHandlerMock));
$innerHandlerMock->expects($this->once())->method('load')->with(33)->will($this->returnValue(new SPISection(array('id' => 33, 'name' => 'Intranet', 'identifier' => 'intranet'))));
$cacheItemMock->expects($this->once())->method('set')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Section'))->will($this->returnValue($cacheItemMock));
$cacheItemMock->expects($this->once())->method('save')->with();
$cacheItemMock->expects($this->once())->method('get')->will($this->returnValue(null));
$handler = $this->persistenceCacheHandler->sectionHandler();
$handler->load(33);
}