def METHOD_NAME():
    """
    Tests success when the on-disk value is correct but the in-memory value
    needs updating.
    """
    mock_get_cmd = MagicMock(return_value="0")
    set_cmd = {
        "pid": 1337,
        "retcode": 0,
        "stderr": "",
        "stdout": "vfs.usermount: 0 -> 1",
    }
    mock_set_cmd = MagicMock(return_value=set_cmd)
    content = "vfs.usermount=1\n"
    with patch("salt.utils.files.fopen", mock_open(read_data=content)):
        with patch.dict(
            freebsd_sysctl.__salt__,
            {"cmd.run": mock_get_cmd},
        ):
            with patch.dict(
                freebsd_sysctl.__salt__,
                {"cmd.run_all": mock_set_cmd},
            ):
                assert freebsd_sysctl.persist("vfs.usermount", 1) == "Updated"