### Question:
FilterLogListener implements LogListener,Configurable { public String getPriority() { return priority; } 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 testConstructor() throws Throwable { PrintStream p = new PrintStream(new ByteArrayOutputStream(), true); FilterLogListener filterLogListener = new FilterLogListener(p); assertSame(p, filterLogListener.p, "filterLogListener.p"); assertEquals("info", filterLogListener.getPriority(), "filterLogListener.getPriority()"); }
@Test public void testConstructor1() throws Throwable { FilterLogListener filterLogListener = new FilterLogListener(); assertNotNull(filterLogListener.p, "filterLogListener.p"); assertEquals("info", filterLogListener.getPriority(), "filterLogListener.getPriority()"); }