public void testUDPWithDisconnectConnect() throws Exception
    {
        client1.oldConnect(remoteAddr);
        DatagramChannel svrChan = mockServer.getUDPServerChannel();
        client1.registerForReads((DataListener)mockHandler);
        verifyDataPassing(svrChan);
        
        //now disconnect, have server send some udp packets which should be rejected
        client1.disconnect();
        
        writeFromServer(svrChan);
        
        try {
            client1.oldWrite(createBuffer());        
            fail("Should have thrown a NotYetConnectedException");
        } catch (IllegalStateException e) {
            //should land here
        }
     
//        try {
//            HandlerForTests.checkForWarnings();
//            fail("log should have had warnings");
//        } catch (LogHasWarningException e) {
//        }
    }