### Question:
LogChannel extends BaseChannel { public void disconnect () throws IOException { super.disconnect (); reader = null; } LogChannel();  LogChannel(String host, int port, ISOPackager p);  LogChannel(ISOPackager p);  LogChannel(ISOPackager p, ServerSocket serverSocket); void disconnect(); @Override void setConfiguration(Configuration cfg);  }### Answer:
@Test public void testDisconnect() throws Throwable { LogChannel logChannel = new LogChannel("testLogChannelHost", 100, new BASE24Packager()); logChannel.disconnect(); assertNull(logChannel.getServerSocket(), "logChannel.getServerSocket()"); assertFalse(logChannel.isConnected(), "logChannel.isConnected()"); assertNull(logChannel.getSocket(), "logChannel.getSocket()"); assertNull(logChannel.reader, "logChannel.reader"); }