@Override
    public void report() {
        try {
            tryReport();
        } catch (ConcurrentModificationException | NoSuchElementException ignored) {
            // at tryReport() we don't synchronize while iterating over the various maps which might
            // cause a
            // ConcurrentModificationException or NoSuchElementException to be thrown,
            // if concurrently a metric is being added or removed.
        }
    }
@Test
    void testOnlyMeterRegistered() {
        reporter.notifyOfAddedMetric(new MeterView(new SimpleCounter()), "metric", metricGroup);

        reporter.report();

        assertThat(testLoggerResource.getMessages())
                .noneMatch(logOutput -> logOutput.contains("-- Counter"))
                .noneMatch(logOutput -> logOutput.contains("-- Gauge"))
                .noneMatch(logOutput -> logOutput.contains("-- Histogram"))
                .anyMatch(logOutput -> logOutput.contains("-- Meter"));
    }