def METHOD_NAME(aggregator, mock_iptables):
    """
    Testing Kube_proxy in iptables mode.
    """
    c = KubeProxyCheck(CHECK_NAME, {}, [instance])
    c.check(instance)
    aggregator.assert_metric(NAMESPACE + '.cpu.time')
    aggregator.assert_metric(NAMESPACE + '.mem.resident')
    aggregator.assert_metric(NAMESPACE + '.mem.virtual')
    aggregator.assert_metric(
        NAMESPACE + '.rest.client.requests', tags=['code:200', 'host:kind-control-plane:6443', 'method:GET']
    )
    aggregator.assert_metric(
        NAMESPACE + '.rest.client.requests', tags=['code:201', 'host:kind-control-plane:6443', 'method:POST']
    )
    aggregator.assert_metric(NAMESPACE + '.sync_proxy.rules.duration.count')
    aggregator.assert_metric(NAMESPACE + '.sync_proxy.rules.duration.sum')
    aggregator.assert_metric(NAMESPACE + '.rest.client.exec_plugin.certificate.rotation.count')
    aggregator.assert_metric(NAMESPACE + '.rest.client.exec_plugin.certificate.rotation.sum')
    aggregator.assert_metric(NAMESPACE + '.rest.client.request.duration.count')
    aggregator.assert_metric(NAMESPACE + '.rest.client.request.duration.sum')
    aggregator.assert_metric(NAMESPACE + '.sync_proxy.rules.endpoint_changes.pending')
    aggregator.assert_metric(NAMESPACE + '.sync_proxy.rules.endpoint_changes.total')
    aggregator.assert_metric(NAMESPACE + '.sync_proxy.rules.iptables')
    aggregator.assert_metric(NAMESPACE + '.sync_proxy.rules.iptables.restore_failures')
    aggregator.assert_metric(NAMESPACE + '.sync_proxy.rules.last_queued_timestamp')
    aggregator.assert_metric(NAMESPACE + '.sync_proxy.rules.last_timestamp')
    aggregator.assert_metric(NAMESPACE + '.sync_proxy.rules.service_changes.pending')
    aggregator.assert_metric(NAMESPACE + '.sync_proxy.rules.service_changes.total')
    aggregator.assert_all_metrics_covered()