*/
    //TODO: fix this test to work on linux and windows.
    public void xxxtestDisconnect() throws IOException, InterruptedException {
        InetSocketAddress svrAddr = runBasic();
        
        client.disconnect();
        
        String msg = "hello";
        //NOTE: write packet from server to client.  Ideally, nothing will be fired to client
        writePacket(server, msg);
        
        //allow one second to go by so we know packet was received and no method should be
        //called on the client.
        Thread.sleep(1000);
        clientHandler.expect(MockObject.NONE);
        
        System.out.println("addr="+svrAddr);
        client.oldConnect(svrAddr);
        
        String msg2 = "abxdefg";
        writePacket(server, msg2);
        
        String[] methodNames = new String[] { "incomingData", "incomingData" };
        CalledMethod[] methods = clientHandler.expect(methodNames);
        
        ByteBuffer actualBuf1= (ByteBuffer)methods[0].getAllParams()[1];
        String actual1 = HELPER.readString(actualBuf1, actualBuf1.remaining());
        assertEquals(msg, actual1);
        
        ByteBuffer actualBuf2= (ByteBuffer)methods[1].getAllParams()[1];
        String actual2 = HELPER.readString(actualBuf2, actualBuf2.remaining());
        assertEquals(msg2, actual2);
    }