@Override
  public ProcessingLogger getLogger(
      final String name
  ) {
    return getLogger(name, Collections.emptyMap());
  }
@Test
  public void shouldCreateLoggerWithoutPassingInTags() {
    // Given:
    final ProcessingLogger testLogger = factory.getLogger("foo.bar");
    final Sensor sensor = metricCollectors.getMetrics().getSensor("foo.bar");
    final Map<String, String> metricsTags = new HashMap<>(customMetricsTags);
    metricsTags.put("logger-id", "foo.bar");

    // When:
    sensor.record();
    sensor.record();

    // Then:
    assertThat(testLogger, is(this.loggerWithMetrics));
    verify(innerFactory).getLogger("foo.bar");
    verify(loggerFactory).apply(config, innerLogger);
    verify(loggerWithMetricsFactory).apply(metricCollectors.getMetrics());
    verify(loggerWithMetricsFactoryHelper).apply(logger, sensor);

    // verify the metric was created correctly
    assertThat(getMetricValue(metricsTags), equalTo(2.0));
  }