@Test
public void testIsEnabled() {

  final Logger log = mock(Logger.class);
  final LogLevel.Enum enabledLevel = LogLevel.Enum.CONF;
  enableUpTo(log, enabledLevel);
  
  final Slf4jLogTarget target = new Slf4jLogTarget(log);
  for (LogLevel.Enum level : LogLevel.Enum.values()) {
    if (level.getLevel() != LogLevel.OFF) {
      assertEquals("level=" + level, level.getLevel() >= enabledLevel.getLevel(), target.isEnabled(level.getLevel()));
    }
  }
}