@Override
  public ProcessingLogger getLogger(
      final String name
  ) {
    return getLogger(name, Collections.emptyMap());
  }
@Test
  public void shouldHandleNullMetrics() {
    // Given:
    final ProcessingLoggerFactory nullMetricsFactory = new MeteredProcessingLoggerFactory(config, innerFactory, null, loggerFactory, loggerWithMetricsFactory, customMetricsTags);

    // When:
    final ProcessingLogger logger1 = nullMetricsFactory.getLogger("boo.far");
    final ProcessingLogger logger2 = nullMetricsFactory.getLogger("boo.far", Collections.singletonMap("tag1", "some-id-2"));

    // Then:
    assertThat(logger1, is(loggerWithMetrics));
    assertThat(logger2, is(loggerWithMetrics));
    verify(loggerWithMetricsFactory).apply(null);
    // no sensor created because metrics object is null
    verify(loggerWithMetricsFactoryHelper).apply(logger, null);
  }