def METHOD_NAME(aggregator, instance):
    check = UnifiConsoleCheck("unifi", {}, [instance])
    info = "test"
    check._submit_healthy_metrics(info, check._config.tags)
    aggregator.assert_service_check("unifi_console.healthy", AgentCheck.CRITICAL, tags=check._config.tags)
    aggregator.assert_metric('unifi_console.healthy', 0, metric_type=aggregator.GAUGE)
    with open(os.path.join(HERE, "fixtures", "status_valid.json")) as f:
        check._submit_healthy_metrics(ControllerInfo(json.load(f)), check._config.tags)
    aggregator.assert_service_check("unifi_console.healthy", AgentCheck.OK, tags=check._config.tags)
    aggregator.assert_metric('unifi_console.healthy', 1, metric_type=aggregator.GAUGE)
    aggregator.reset()
    with open(os.path.join(HERE, "fixtures", "status_invalid.json")) as f:
        check._submit_healthy_metrics(ControllerInfo(json.load(f)), check._config.tags)
    aggregator.assert_service_check("unifi_console.healthy", AgentCheck.CRITICAL, tags=check._config.tags)
    aggregator.assert_metric('unifi_console.healthy', 0, metric_type=aggregator.GAUGE)