public void testBindUnbind() throws Exception
{
IoHandler handler1 = new IoHandlerAdapter();
IoHandler handler2 = new IoHandlerAdapter();
IoHandler handler3 = new IoHandlerAdapter();
IoServiceConfig config1 =
( IoServiceConfig ) MockControl.createControl( IoServiceConfig.class ).getMock();
IoServiceConfig config2 =
( IoServiceConfig ) MockControl.createControl( IoServiceConfig.class ).getMock();
MockControl mockIoAcceptor = MockControl.createControl( IoAcceptor.class );
IoAcceptor acceptor = ( IoAcceptor ) mockIoAcceptor.getMock();
acceptor.bind( new InetSocketAddress( 80 ), handler1, config1 );