def METHOD_NAME(aggregator):
    c = GnatsdCheck(CHECK_NAME, {}, [CONNECTION_FAILURE])
    with pytest.raises(Exception):
        c.check(CONNECTION_FAILURE)
    aggregator.assert_service_check('gnatsd.can_connect', status=GnatsdCheck.CRITICAL, count=1)