def METHOD_NAME():
    """
    Test activating the given product key
    """
    expected = {
        "changes": {},
        "comment": "Windows is now activated.",
        "name": "AAAAA-AAAAA-AAAAA-AAAA-AAAAA-ABCDE",
        "result": True,
    }
    info = {
        "description": "Prof",
        "licensed": False,
        "name": "Win7",
        "partial_key": "XXXXX",
    }
    info_mock = MagicMock(return_value=info)
    install_mock = MagicMock(return_value="Installed successfully")
    activate_mock = MagicMock(return_value="Activated successfully")
    with patch.dict(
        win_license.__salt__,
        {
            "license.info": info_mock,
            "license.install": install_mock,
            "license.activate": activate_mock,
        },
    ):
        out = win_license.activate("AAAAA-AAAAA-AAAAA-AAAA-AAAAA-ABCDE")
        info_mock.assert_called_once_with()
        install_mock.assert_called_once_with("AAAAA-AAAAA-AAAAA-AAAA-AAAAA-ABCDE")
        activate_mock.assert_called_once_with()
        assert out == expected