### Question:
SimpleLogListener implements LogListener, XmlConfigurable, Consumer<LogEventWriter> { public synchronized LogEvent log (LogEvent ev) { if (writer != null) { writer.write(ev); } else { if (p != null) { ev.dump(p, ""); p.flush(); } } return ev; } SimpleLogListener();  SimpleLogListener(PrintStream p); synchronized void setPrintStream(PrintStream p); synchronized void close(); synchronized LogEvent log(LogEvent ev); @Override void accept(LogEventWriter writer); @Override void setConfiguration(Element e);  }### Answer:
@Test public void testLog() throws Throwable { LogEvent result = new SimpleLogListener(null).log(null); assertNull(result, "result"); }
@Test public void testLog1() throws Throwable { LogEvent ev = new LogEvent("testSimpleLogListenerTag", "1"); LogEvent result = new SimpleLogListener(null).log(ev); assertSame(ev, result, "result"); }