def METHOD_NAME(test_case, dd_run_check, extra_config, expected_http_kwargs, instance):
    instance.update(extra_config)
    check = Couchbase('couchbase', {}, [instance])
    with mock.patch('datadog_checks.base.utils.http.requests') as r:
        r.get.return_value = mock.MagicMock(status_code=200)
        dd_run_check(check)
        http_wargs = {
            'auth': mock.ANY,
            'cert': mock.ANY,
            'headers': mock.ANY,
            'proxies': mock.ANY,
            'timeout': mock.ANY,
            'verify': mock.ANY,
            'allow_redirects': mock.ANY,
        }
        http_wargs.update(expected_http_kwargs)
        r.get.assert_called_with('http://localhost:8091/pools/default/tasks', **http_wargs)