public function testUpdateGroup()
{
$updateStruct = new GroupUpdateStruct();
$updateStruct->id = 23;
$mapperMock = $this->getMapperMock();
$gatewayMock = $this->getGatewayMock();
$gatewayMock->expects($this->once())->method('updateGroup')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Type\\Group\\UpdateStruct'));
$handlerMock = $this->getMock('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Type\\Handler', array('loadGroup'), array($gatewayMock, $mapperMock, $this->getUpdateHandlerMock()));
$handlerMock->expects($this->once())->method('loadGroup')->with($this->equalTo(23))->will($this->returnValue(new Group()));
$res = $handlerMock->updateGroup($updateStruct);
$this->assertInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Type\\Group', $res);
}