def METHOD_NAME(aggregator, dd_run_check, mock_performance_objects):
    mock_performance_objects({'Foo': ([None], {'Bar': [9000], 'Baz': [42]})})
    check = get_check(
        {'metrics': {'Foo': {'name': 'foo', 'counters': [{'Bar': {'name': 'bar'}}, {'Baz': {'name': 'baz'}}]}}}
    )
    dd_run_check(check)
    aggregator.assert_metric('test.foo.bar', 9000, tags=GLOBAL_TAGS)
    aggregator.assert_metric('test.foo.baz', 42, tags=GLOBAL_TAGS)
    aggregator.assert_all_metrics_covered()