def METHOD_NAME():
    with patch(
        "vdk.internal.plugin.plugin_manager.VdkPluginManager", spec=PluginManager
    ) as mock_plugin_manager:
        mock_plugin_manager.hook = None
        mock_plugin_manager.load_setuptools_entrypoints.side_effect = Exception("foo")
        with pytest.raises(PluginException):
            plugin_registry = PluginRegistry("vdk.group.foo", mock_plugin_manager)
            plugin_registry.load_plugins_from_setuptools_entrypoints()