public void testSingleAcceptor() throws Exception {
PluggableChannelAcceptor main_acceptor = new PluggableChannelAcceptor();
// Add a single acceptor that takes anything
ChannelAcceptor accepting_acceptor = EasyMock.createMock( ChannelAcceptor.class );
accepting_acceptor.newChannel( null, null, "test" );
EasyMock.replay( accepting_acceptor );
main_acceptor.addDelegate( accepting_acceptor );
try {
main_acceptor.newChannel( null, null, "test" );