SessionData dh = new MyDataHandler();
SocketChannel s = newSocketChannel( "127.0.0.1", port );
SocketChannel t = lh.accepted.waitUntilNotEqAndSet( null, TIMEOUT, null );
r.put( "connection", s );
Tcp2Connection c = new Tcp2Connection( "tcp:", r );
c.setSession( dh );
assertSame( dh, c.getSession() );
s.close();
t.close();
}