def METHOD_NAME(aggregator, instance, check):
    with mock.patch('datadog_checks.ibm_was.IbmWasCheck.make_request', return_value=mock_data('server.xml')):
        check = check(instance)
        check.check(instance)
    metrics_in_fixture = ['ibm_was.thread_pools.percent_used']
    for metric_name in common.METRICS_ALWAYS_PRESENT + metrics_in_fixture:
        aggregator.assert_metric(metric_name)
        aggregator.assert_metric_has_tag(metric_name, 'key1:value1')