### Question:
LoopbackChannel extends FilteredBase implements LogSource { public void setLogger (Logger logger, String realm) { this.logger = logger; this.realm = realm; } LoopbackChannel(); void setPackager(ISOPackager packager); void connect(); void disconnect(); void reconnect(); boolean isConnected(); void send(ISOMsg m); void send(byte[] b); ISOMsg receive(); void setUsable(boolean usable); int[] getCounters(); void setName(String name); String getName(); ISOPackager getPackager(); void resetCounters(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger();  }### Answer:
@Test public void testSetLogger() throws Throwable { LoopbackChannel loopbackChannel = new LoopbackChannel(); Logger logger = new Logger(); loopbackChannel.setLogger(logger, "testLoopbackChannelRealm"); assertSame(logger, loopbackChannel.logger, "loopbackChannel.logger"); assertEquals("testLoopbackChannelRealm", loopbackChannel.realm, "loopbackChannel.realm"); }