public function testUpdateGroup()
{
$handler = $this->getObjectStateHandler();
$mapperMock = $this->getMapperMock();
$gatewayMock = $this->getGatewayMock();
$mapperMock->expects($this->once())->method('createObjectStateGroupFromInputStruct')->with($this->equalTo($this->getInputStructFixture()))->will($this->returnValue($this->getObjectStateGroupFixture()));
$gatewayMock->expects($this->once())->method('updateObjectStateGroup')->with($this->equalTo(new Group(array('id' => 2))));
$gatewayMock->expects($this->once())->method('loadObjectStateGroupData')->with($this->equalTo(2))->will($this->returnValue(array(array())));
$mapperMock->expects($this->once())->method('createObjectStateGroupFromData')->with($this->equalTo(array(array())))->will($this->returnValue($this->getObjectStateGroupFixture()));
$result = $handler->updateGroup(2, $this->getInputStructFixture());
$this->assertInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\ObjectState\\Group', $result);
}