protected function getUserServiceMock()
{
$userServiceMock = $this->getMock('eZ\\Publish\\Core\\Repository\\UserService', array(), array(), '', false);
$contentType = $this->getContentType();
$userServiceMock->expects($this->any())->method('newUserGroupCreateStruct')->with($this->equalTo('eng-US'), $this->equalTo($contentType))->will($this->returnValue(new UserGroupCreateStruct(array('contentType' => $contentType, 'mainLanguageCode' => 'eng-US'))));
return $userServiceMock;
}