@Test
public void testIfDebugIsEnabled() {

    final StroomLogger stroomLogger = StroomLogger.getLogger(TestStroomLogger.class);
    final AtomicInteger counter = new AtomicInteger(0);
    stroomLogger.ifDebugIsEnabled(() -> counter.incrementAndGet());
    Assert.assertEquals(stroomLogger.isDebugEnabled() ? 1 : 0, counter.get());
}