def METHOD_NAME(plugin_registry):
    class BadPlugin:
        @hookimpl
        def get_a_joke(self, wrong_param: int):
            return "Huh!"
    with pytest.raises(PluginException):
        plugin_registry.load_plugin_with_hooks_impl(BadPlugin(), "bad-plugin")