def METHOD_NAME(self, parser: ArgumentParser, plugin: Type[Plugin]):
    group_plugins = next((grp for grp in parser._action_groups if grp.title == "Plugin options"), None)  # pragma: no branch
    assert group_plugins is not None, "Adds the 'Plugin options' arguments group"
    assert group_plugins in parser.NESTED_ARGUMENT_GROUPS[None], "Adds the 'Plugin options' arguments group"
    group_plugin = next((grp for grp in parser._action_groups if grp.title == "Mock"), None)  # pragma: no branch
    assert group_plugin is not None, "Adds the 'Mock' arguments group"
    assert group_plugin in parser.NESTED_ARGUMENT_GROUPS[group_plugins], "Adds the 'Mock' arguments group"
    assert [
        item
        for action in parser._actions
        for item in action.option_strings
        if action.help != argparse.SUPPRESS
    ] == [
        "--mock-foo-bar",
        "--mock-baz",
        "--mock-user",
        "--mock-pass",
        "--mock-captcha",
    ], "Parser has all arguments registered"