Slf4jWrapper { public static LogService of(Logger logger) { return __ -> new Slf4jLogTarget(logger); } private  Slf4jWrapper(); static LogService of(Logger logger);  }
@Test public void testGet() { final Logger logger = mock(Logger.class); final LogService logService = Slf4jWrapper.of(logger); assertNotNull(logService); final LogTarget logTarget = logService.get("name"); assertNotNull(logTarget); logTarget.isEnabled(LogLevel.INFO); verify(logger).isInfoEnabled(); }