def METHOD_NAME(aggregator, dd_run_check, new_check, instance, report_event):
    instance['query'] = "*[System[Provider[@Name='foo']]]"
    check = new_check(instance)
    report_event('message')
    dd_run_check(check)
    assert len(aggregator.events) == 0