* @throws IOException
     * @throws InterruptedException
     */
    private InetSocketAddress setupPortUnreachable(InetSocketAddress svrAddr) throws IOException, InterruptedException
    {
        InetAddress localhost = InetAddress.getLocalHost();
        client.bind(new InetSocketAddress(localhost, 0));

        
        InetSocketAddress clientAddr = client.getLocalAddress();
        
        client.oldConnect(svrAddr);
        client.registerForReads((DataListener)clientHandler);
        
        String msg = "aaaaa";
        //should result in port unreachable
        writePacket(client, msg);
        
        //expect the exception
        CalledMethod m = clientHandler.expect("failure");
        PortUnreachableException exc = (PortUnreachableException)m.getAllParams()[2];
        log.log(Level.FINE, "this is expected", exc);
        return clientAddr;
    }