@Mock
ISOClientSocketFactory socketFactory;
@Test
public void testAcceptThrowsNullPointerException() throws Throwable {
BaseChannel xMLChannel = new XMLChannel(new PostPackager());
try {
xMLChannel.accept(null);
fail("Expected NullPointerException to be thrown");
} catch (NullPointerException ex) {
assertNull("ex.getMessage()", ex.getMessage());
assertNull("(XMLChannel) xMLChannel.logger", ((XMLChannel) xMLChannel).logger);
assertNull("(XMLChannel) xMLChannel.originalRealm", ((XMLChannel) xMLChannel).originalRealm);
assertNull("(XMLChannel) xMLChannel.serverIn", ((XMLChannel) xMLChannel).serverIn);
assertNull("(XMLChannel) xMLChannel.serverOut", ((XMLChannel) xMLChannel).serverOut);
assertNull("(XMLChannel) xMLChannel.getSocket()", xMLChannel.getSocket());
assertEquals("(XMLChannel) xMLChannel.cnt.length", 3, ((XMLChannel) xMLChannel).cnt.length);
assertNull("(XMLChannel) xMLChannel.realm", ((XMLChannel) xMLChannel).realm);
assertFalse("(XMLChannel) xMLChannel.usable", ((XMLChannel) xMLChannel).usable);
}
}