* correctly process the sessionOpened, messageReceived, messageSent and sessionClosed events. We use only one
* selector to process all the OP events.
*/
@Test
public void generateAllKindOfServerEventOneSelector() throws IOException, InterruptedException {
SelectorLoopPool selectorLoopPool = new FixedSelectorLoopPool("Server", 1);
final NioTcpServer server = new NioTcpServer(selectorLoopPool.getSelectorLoop(), selectorLoopPool, null);
server.setFilters(new MyCodec(), new Handler());
server.bind(0);
// warm up
Thread.sleep(100);