PerformanceLogger { public boolean isDebugEnabled() { return logger.isDebugEnabled(); } PerformanceLogger(Supplier<Map<String, Object>> configSupplier, String loggerName);  PerformanceLogger(Supplier<Map<String, Object>> configSupplier, Logger logger,
      ThresholdCalculator thresholdCalc, Timing timing); void mark(String markName); void log(String markName); void log(String markName, String message); void log(String markName, String format, Object arg); void log(String markName, String format, Object arg1, Object arg2); void log(String markName, String format, Object... arguments); boolean isDebugEnabled();  }
@Test public void isDebugEnabled_returns_true_when_debugging_is_set() { when(logger.isDebugEnabled()).thenReturn(true); assertThat(perfLogger.isDebugEnabled(), equalTo(true)); }