@Test
public void testIsLoggable() {

  final Zlg zlg = mock(Zlg.class, Answers.CALLS_REAL_METHODS);
  when(zlg.isEnabled(anyInt())).thenAnswer(invocation -> {
    final int level = invocation.getArgument(0);
    return level >= LogLevel.WARN;
  });
  final ZlgLogger logger = new ZlgLogger(zlg);
  
  assertFalse(logger.isLoggable(Level.INFO));
  assertTrue(logger.isLoggable(Level.WARNING));
  assertTrue(logger.isLoggable(Level.SEVERE));
}