def METHOD_NAME(self, session_respond_500, app_spec, deployment):
    conf = Configuration(["--extension-hook-url", URL_PARAM])
    extension_hook_caller = ExtensionHookCaller(conf, session_respond_500)
    obj = copy.deepcopy(deployment)
    with pytest.raises(HTTPError):
        extension_hook_caller.apply(obj, app_spec)