protected function getObjectStateServiceMock()
{
$objectStateServiceMock = $this->getMock('eZ\\Publish\\Core\\Repository\\ObjectStateService', array(), array(), '', false);
$objectStateServiceMock->expects($this->any())->method('newObjectStateGroupCreateStruct')->with($this->equalTo('test-group'))->will($this->returnValue(new ObjectStateGroupCreateStruct(array('identifier' => 'test-group'))));
return $objectStateServiceMock;
}