def METHOD_NAME(aggregator, instance, dd_run_check):
    instance["schema"] = "UNKNOWN_SCHEMA"
    check = SapHanaCheck('sap_hana', {}, [instance])
    _run_until_stable(dd_run_check, check, aggregator, mock_log=True)
    check.log.error.assert_has_calls(
        calls=[
            call('Error querying %s: %s', 'UNKNOWN_SCHEMA.M_BACKUP_PROGRESS', ANY),
            call('Error querying %s: %s', 'UNKNOWN_SCHEMA.M_LICENSES', ANY),
            call('Error querying %s: %s', 'UNKNOWN_SCHEMA.M_CONNECTIONS', ANY),
            call('Error querying %s: %s', 'UNKNOWN_SCHEMA.M_DISK_USAGE', ANY),
            call('Error querying %s: %s', 'UNKNOWN_SCHEMA.M_SERVICE_MEMORY', ANY),
            call('Error querying %s: %s', 'UNKNOWN_SCHEMA.M_SERVICE_COMPONENT_MEMORY', ANY),
            call('Error querying %s: %s', 'UNKNOWN_SCHEMA.M_RS_MEMORY', ANY),
            call('Error querying %s: %s', 'UNKNOWN_SCHEMA.M_SERVICE_STATISTICS', ANY),
            call('Error querying %s: %s', 'UNKNOWN_SCHEMA.M_VOLUME_IO_TOTAL_STATISTICS', ANY),
        ],
        any_order=False,
    )
    for call_args in check.log.error.call_args_list:
        assert "invalid schema name: UNKNOWN_SCHEMA" in call_args[0][2]
    assert check.log.error.call_count == 9