@Test
    void consumers_are_set_up_for_hosted() {
        ConsumersConfig config = consumersConfigFromXml(servicesWithAdminOnly(), hosted);
        assertEquals(5, config.consumer().size());
        assertEquals(MetricsConsumer.vespa.id(), config.consumer(0).name());
        assertEquals(MetricsConsumer.autoscaling.id(), config.consumer(1).name());
        assertEquals(MetricsConsumer.defaultConsumer.id(), config.consumer(2).name());
        assertEquals(MetricsProxyContainerCluster.NEW_DEFAULT_CONSUMER_ID, config.consumer(3).name());
        assertEquals(MetricsConsumer.vespa9.id(), config.consumer(4).name());
    }
Tests for {@link MetricsProxyContainerCluster} related to metrics consumers.

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