def METHOD_NAME(opts_userpass):
    with patch(
        "salt.proxy.esxcluster.jsonschema.validate",
        MagicMock(
            side_effect=jsonschema.exceptions.ValidationError("Validation Error")
        ),
    ):
        with pytest.raises(salt.exceptions.InvalidConfigError) as excinfo:
            esxcluster.init(opts_userpass)
    assert excinfo.value.message == "Validation Error"