def METHOD_NAME(mock_click_echo, mock_list, mock_package):
    mock_list.return_value = [("dist", "plugin")]
    check_plugin = NewVersionCheckPlugin()
    context = build_core_context(
        check_plugin,
        {
            new_version_check_plugin.ConfigKey.PACKAGE_INDEX.value: "https://testing.package.index"
        },
    )
    check_plugin.vdk_exit(context)
    mock_package.assert_any_call(
        package_index="https://testing.package.index", package_name="vdk-core"
    )
    mock_package.assert_any_call(
        package_index="https://testing.package.index", package_name="dist"
    )
    # we verify the correctness of the command that is suggested to the user
    expected_command = "pip install --upgrade-strategy eager -U vdk-core dist --extra-index-url https://testing.package.index"
    assert any(
        filter(lambda c: expected_command in str(c), mock_click_echo.mock_calls)
    ), f"did not get expected substring inside message: {mock_click_echo.mock_calls}"