@Test
    void consumer_with_default_metric_set_has_all_its_metrics_plus_all_system_metrics_plus_its_own() {
        String services = String.join("\n",
                "<services>",
                "    <admin version='2.0'>",
                "        <adminserver hostalias='node1'/>",
                "        <metrics>",
                "            <consumer id='consumer-with-public-default-set'>",
                "                <metric-set id='default'/>",
                "                <metric id='custom.metric'/>",
                "            </consumer>",
                "        </metrics>",
                "    </admin>",
                "</services>"
        );
        ConsumersConfig.Consumer consumer = getCustomConsumer(services);

        assertEquals(numPublicDefaultMetrics + numSystemMetrics + 1, consumer.metric().size());

        Metric customMetric = new Metric("custom.metric");
        assertTrue(checkMetric(consumer, customMetric), "Did not contain metric: " + customMetric);
    }
Tests for {@link MetricsProxyContainerCluster} related to metrics consumers.

@author gjoranv
config-model/src/test/java/com/yahoo/vespa/model/admin/metricsproxy/MetricsConsumersTest.java