def METHOD_NAME(aggregator, tls_instance):
    with mock.patch('datadog_checks.vertica.vertica.vertica') as vertica:
        with mock.patch('datadog_checks.base.utils.tls.ssl') as ssl:
            vertica.connect.return_value = mock.MagicMock()
            tls_context = mock.MagicMock()
            ssl.SSLContext.return_value = tls_context
            check = VerticaCheck('vertica', {}, [tls_instance])
            check.check(tls_instance)
            assert check._client.use_tls
            assert tls_context.verify_mode == ssl.CERT_REQUIRED
            assert tls_context.check_hostname is True
            tls_context.load_verify_locations.assert_called_with(cadata=None, cafile=None, capath=CERTIFICATE_DIR)
            tls_context.load_cert_chain.assert_called_with(cert, keyfile=private_key, password=None)
    aggregator.assert_service_check("vertica.can_connect", status=AgentCheck.OK, tags=['db:abc', 'foo:bar'])