def METHOD_NAME() -> None:
    class Plugin:
        @hookimpl
        def myhook(self):
            raise NotImplementedError()
    pm = PluginManager(hookspec.project_name)
    plugin = Plugin()
    pname = pm.register(plugin)
    assert repr(pm.hook.myhook.get_hookimpls()[0]) == (
        f"<HookImpl plugin_name={pname!r}, plugin={plugin!r}>"
    )