### Question:
Logger extends AbstractMessageFilter { public Logger( TransportMessage transport, URL uri, Resources resources ) throws Exception { super( transport, uri, resources ); initializeLogger(uri); } Logger( TransportMessage transport, URL uri, Resources resources ); @Override String toString(); @Override boolean sessionMessage( Who sender, Message msg ); @Override void transportMessage( Who recipient, Message msg ); void writeToFile( Direction direction, Who msgOrigin, String msg ); String getFileName(); String getTestRenamedFileName(); static boolean testFlag; }### Answer:
@Test public void logger() throws Exception { String uri = "tcp: Logger.testFlag = true; Logger logger = newLogger(uri); logger.setSession( session ); assertSame(transport.getSession(),logger); assertSame(logger.getSession(),session); }