### Question:
MetricsSupport implements Service { static JsonObject jsonDataByName(Registry registry, String metricName) { JsonObjectBuilder builder = new MetricsSupport.MergingJsonObjectBuilder(JSON.createObjectBuilder()); for (Map.Entry<MetricID, HelidonMetric> metricEntry : registry.getMetricsByName(metricName)) { metricEntry.getValue() .jsonData(builder, metricEntry.getKey()); } return builder.build(); } private  MetricsSupport(Builder builder); static MetricsSupport create(); static MetricsSupport create(Config config); static Builder builder(); static String toPrometheusData(MetricID metricID, Metric metric, boolean withHelpType); static String toPrometheusData(String name, Metric metric, boolean withHelpType); void configureVendorMetrics(String routingName,
            Routing.Rules rules); void configureEndpoint(Routing.Rules rules); @Override void update(Routing.Rules rules);  }### Answer:
@Test void testJsonDataMultipleMetricsSameName() { JsonObject multiple = MetricsSupport.jsonDataByName(app, CONCURRENT_GAUGE_NAME); assertNotNull(multiple); JsonObject top = multiple.getJsonObject(CONCURRENT_GAUGE_NAME); assertNotNull(top); JsonNumber blueNumber = top.getJsonNumber("current;color=blue" + globalTagsJsonSuffix); assertNotNull(blueNumber); assertEquals(BLUE_CONCURRENT_GAUGE_COUNT, blueNumber.longValue()); JsonNumber redNumber = top.getJsonNumber("current;color=red" + globalTagsJsonSuffix); assertNotNull(redNumber); assertEquals(RED_CONCURRENT_GAUGE_COUNT, redNumber.longValue()); }