def METHOD_NAME(self,
                                                                      mock_is_file,
                                                                      mock_get_component_config):
    cfg = configparser.ConfigParser()
    cfg["default"] = {
        "id": "node-id",
        "component": "NODE"
    }
    cfg["mpspdz"] = {
        "mpspdz_ip": "localhost",
        "mpspdz_port": 1234,
        "public_key": "path/to/certificate"
    }
    mock_get_component_config.return_value = cfg
    mock_is_file.return_value = False
    with self.assertRaises(FedbiomedError):
        get_component_certificate_from_config("dummy/path/to/config")
    mock_is_file.return_value = True
    with patch("builtins.open") as mock_open:
        mock_open.side_effect = Exception
        with self.assertRaises(FedbiomedError):
            get_component_certificate_from_config("dummy/path/to/config")
        mock_open.side_effect = None
        mock_open.return_value.__enter__.return_value.read.return_value = "test-certificate"
        cert = get_component_certificate_from_config("dummy/path/to/config")
        self.assertDictEqual(cert, {'certificate': 'test-certificate',
                                    'component': 'NODE',
                                    'ip': 'localhost',
                                    'party_id': 'node-id',
                                    'port': '1234'}
                             )