### Question:
UdpConnection extends Connection<SessionPacket> implements TransportPacket { public void transportPacket( Who recipient, FlexBuffer buf ) throws IOException { SocketAddress recipientAddress = remoteAddress; if (recipient != null && recipient instanceof InetWho) { InetWho inetWho = (InetWho)recipient; recipientAddress = new InetSocketAddress( inetWho.getInetAddress(), inetWho.getPort() ); } sendDatagramPacket.setData( buf.getBuf(), buf.index(), buf.avail() ); sendDatagramPacket.setSocketAddress( recipientAddress ); if (listener != null) listener.Send(sendDatagramPacket); else socket.send(sendDatagramPacket); } UdpConnection(SocketAddress remoteAddress, UdpListener listener);  UdpConnection(String uri);  UdpConnection(URL uri);  UdpConnection(String host, Integer port, boolean enableBroadcast, int delay); @Override void close( boolean reset ); int headerSize(); void transportPacket( Who recipient, FlexBuffer buf ); @Override String toString(); @Override SocketAddress localAddress(); @Override SocketAddress remoteAddress(); final static String BROADCAST; }### Answer:
@Test @Ignore public void blah() throws Exception { assertEquals( What.UP, aph.what ); assertEquals( What.UP, bph.what ); FlexBuffer buf = new FlexBuffer(); buf.put( 1 ); buf.put( 2 ); buf.put( 3 ); buf.put( 4 ); buf.put( 5 ); buf.setIndex( 0 ); ac.transportPacket( null, buf ); Thread.sleep( 500 ); assertEquals( What.PACKET, bph.what ); assertNotNull( bph.xsender ); assertNotSame( buf, bph.xbuf ); assertEquals( 0, bph.xbuf.index() ); assertEquals( 5, bph.xbuf.length() ); assertEquals( 1, bph.xbuf.get() ); assertEquals( 2, bph.xbuf.get() ); assertEquals( 3, bph.xbuf.get() ); assertEquals( 4, bph.xbuf.get() ); assertEquals( 5, bph.xbuf.get() ); }