@Test
public void testIfTraceIsEnabled() {

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