def METHOD_NAME(aggregator, instance, monkeypatch):
    check = VerticaCheck('vertica', {}, [instance])
    monkeypatch.setattr(check._client, 'connect', mock.Mock(side_effect=Exception))
    check.check(instance)
    aggregator.assert_service_check("vertica.can_connect", status=AgentCheck.CRITICAL, tags=['db:datadog', 'foo:bar'])