### Question:
FilterLogListener implements LogListener,Configurable { public synchronized void setPrintStream(PrintStream p) { this.p = p; } FilterLogListener();  FilterLogListener(PrintStream p); @Override void setConfiguration(Configuration cfg); synchronized void setPrintStream(PrintStream p); synchronized void close(); String getPriority(); void setPriority(String priority); boolean permitLogging(String tagLevel); @Override synchronized LogEvent log(LogEvent ev);  }### Answer:
@Test public void testSetPrintStream() throws Throwable { PrintStream p = new PrintStream(new ByteArrayOutputStream()); FilterLogListener filterLogListener = new FilterLogListener(); filterLogListener.setPrintStream(p); assertSame(p, filterLogListener.p, "filterLogListener.p"); }