mockLogger.expect( "info", C.args( C.eq( acceptorCreatedMessage ) ) );
mockLogger.expect( "info", C.args( C.eq( acceptorClosingMessage ) ) );
mockLogger.expectAndReturn( "isDebugEnabled", C.NO_ARGS, false );
mockLogger.expectAndReturn( "isDebugEnabled", C.NO_ARGS, true );
mockLogger.expect( "debug", C.args( C.eq( serverSocketListening ) ) );
mockLogger.expect( "warn", C.args( C.eq( errorAcceptingConnectionMessage ), C.eq( ioe ) ) );
mockLogger.expect( "warn", C.args( C.eq( errorClosingServerSocketMessage ), C.eq( ioe ) ) );
final Logger logger = (Logger) mockLogger.proxy();
final AcceptorMonitor monitor = new AvalonAcceptorMonitor( logger );
monitor.acceptorCreated( name, serverSocket );