manager.setMonitor( monitor );
manager.setSoTimeout( 10 );
final String name = "name";
assertEquals( "isConnected pre connect", false, manager.isConnected( name ) );
final ServerSocketChannel channel = ServerSocketChannel.open();
final ServerSocket serverSocket = channel.socket();
serverSocket.setReuseAddress( true );
final InetAddress localAddress = InetAddress.getLocalHost();
final Random random = new Random();
final int port = Math.abs( random.nextInt() % 5000 ) + 1024;
final InetSocketAddress address = new InetSocketAddress( localAddress, port );
serverSocket.bind( address );
while ( !serverSocket.isBound() )
{
System.out.print( "." );
Thread.yield();
}