LoggerImpl implements Logger { @Override public void info(String message) { logger.info(LogMarker.INFO.getValue(), message); } LoggerImpl(Class<?> clazz);  LoggerImpl(org.slf4j.Logger logger); @Override void setClientId(String clientId); @Override void info(String message); @Override void warning(String message); @Override void error(String message); @Override void error(String message, Throwable throwable); @Override void entry(String methodName); @Override void entry(String methodName, Object... objects); @Override void entry(Object source, String methodName); @Override void entry(Object source, String methodName, Object... objects); @Override void exit(String methodName); @Override void exit(String methodName, Object result); @Override void exit(Object source, String methodName); @Override void exit(Object source, String methodName, Object result); @Override void data(String methodName); @Override void data(String methodName, Object... objects); @Override void data(Object source, String methodName); @Override void data(Object source, String methodName, Object... objects); @Override void throwing(String methodName, Throwable throwable); @Override void throwing(Object source, String methodName, Throwable throwable); @Override void ffdc(String methodName, FFDCProbeId probeId, Throwable throwable, Object... data); @Override void ffdc(Object source, String methodName, FFDCProbeId probeId, Throwable throwable, Object... data);  }
@Test public void testInfo() { final MockLogger logger = new MockLogger("testInfo"); final Logger testLogger = LoggerFactory.getLogger(logger); testLogger.info("test info message"); MockEvent event = logger.getEvent(); assertEquals("Unexpected type", "info", event.type); assertEquals("Unexpected marker", LogMarker.INFO.getValue(), event.marker); assertEquals("Unexpected message", "test info message", event.message); assertNull("Unexpected throwable", event.throwable); assertEquals("Unexpected args", 0, event.args.length); try { event = logger.getEvent(); fail("Unexpected event: "+event); } catch(NoSuchElementException e) { } }