protected function getPartlyMockedRoleService(array $methods = null, array $settings = array())
{
if (!isset($this->partlyMockedRoleService) || !empty($settings)) {
$this->partlyMockedRoleService = $this->getMock('eZ\\Publish\\Core\\Repository\\RoleService', $methods, array($this->getRepositoryMock(), $this->getPersistenceMockHandler('User\\Handler'), $limitationService = $this->getPartlyMockedLimitationService($methods, $settings), $this->getMock('eZ\\Publish\\Core\\Repository\\Helper\\RoleDomainMapper', array(), array($limitationService)), $settings));
}
return $this->partlyMockedRoleService;
}