Properties p = new Properties();
SocketServerConnection conn = helpEstablishConnection(false, config, p);
SocketListenerStats stats = listener.getStats();
assertEquals(2, stats.objectsRead); // handshake response, logon,
assertEquals(1, stats.sockets);
conn.cleanUp();
assertTrue(conn.isOpen(1000));
stats = listener.getStats();
assertEquals(5, stats.objectsRead); // ping (pool test), assert identity, ping (isOpen)
assertEquals(1, stats.sockets);
conn.close();