def METHOD_NAME(opts_userpass):
    mock_find_credentials = MagicMock(return_value=("fake_username", "fake_password"))
    with patch(
        "salt.proxy.esxdatacenter.merge",
        MagicMock(return_value=opts_userpass["proxy"]),
    ):
        with patch("salt.proxy.esxdatacenter.find_credentials", mock_find_credentials):
            esxdatacenter.init(opts_userpass)
    mock_find_credentials.assert_called_once_with()