def METHOD_NAME():
    """
    Test to grant access to auto-mounted shared folders to the users.
    """
    ret = {"name": "AB", "changes": {}, "result": True, "comment": ""}
    mock = MagicMock(side_effect=[["AB"], "salt", "salt", "salt"])
    with patch.dict(
        vbox_guest.__salt__,
        {
            "vbox_guest.list_shared_folders_users": mock,
            "vbox_guest.grant_access_to_shared_folders_to": mock,
        },
    ):
        ret.update({"comment": "System already in the correct state"})
        assert_method(ret)
        with patch.dict(vbox_guest.__opts__, {"test": True}):
            ret.update(
                {
                    "changes": {"new": ["AB"], "old": "salt"},
                    "comment": (
                        "List of users who have access to"
                        " auto-mounted shared folders will be changed"
                    ),
                    "result": None,
                }
            )
            assert_method(ret)
        with patch.dict(vbox_guest.__opts__, {"test": False}):
            ret.update(
                {
                    "changes": {"new": "salt", "old": "salt"},
                    "comment": (
                        "List of users who have access to"
                        " auto-mounted shared folders was changed"
                    ),
                    "result": True,
                }
            )
            assert_method(ret)