public function testCreateGroup()
{
$this->loggerMock->expects($this->once())->method('logCall');
$cacheItemMock = $this->getMock('Stash\\Interfaces\\ItemInterface');
$this->cacheMock->expects($this->once())->method('getItem')->with('contentTypeGroup', 55)->will($this->returnValue($cacheItemMock));
$innerHandler = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\Type\\Handler');
$this->persistenceHandlerMock->expects($this->once())->method('contentTypeHandler')->will($this->returnValue($innerHandler));
$innerHandler->expects($this->once())->method('createGroup')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Type\\Group\\CreateStruct'))->will($this->returnValue(new SPITypeGroup(array('id' => 55))));
$cacheItemMock->expects($this->once())->method('set')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Type\\Group'))->will($this->returnValue($cacheItemMock));
$cacheItemMock->expects($this->once())->method('save')->with();
$cacheItemMock->expects($this->never())->method('get');
$handler = $this->persistenceCacheHandler->contentTypeHandler();
$handler->createGroup(new SPITypeGroupCreateStruct());
}