### Question:
XMLChannel extends BaseChannel { public void disconnect () throws IOException { super.disconnect (); if (reader != null) reader.close (); reader = null; } XMLChannel();  XMLChannel(String host, int port, ISOPackager p);  XMLChannel(ISOPackager p);  XMLChannel(ISOPackager p, ServerSocket serverSocket); void disconnect();  }### Answer:
@Test public void testDisconnect() throws Throwable { XMLChannel xMLChannel = new XMLChannel(); xMLChannel.disconnect(); assertNull(xMLChannel.getServerSocket(), "xMLChannel.getServerSocket()"); assertNull(xMLChannel.reader, "xMLChannel.reader"); assertNull(xMLChannel.getSocket(), "xMLChannel.getSocket()"); assertFalse(xMLChannel.isConnected(), "xMLChannel.isConnected()"); }