public void testTwoExecutorFilters() throws IOException, InterruptedException {
DefaultIoFilterChainBuilder chain = new DefaultIoFilterChainBuilder();
MdcInjectionFilter mdcInjectionFilter = new MdcInjectionFilter();
chain.addLast("executor1" , new ExecutorFilter());
chain.addLast("mdc-injector1", mdcInjectionFilter);
chain.addLast("protocol", new ProtocolCodecFilter(new DummyProtocolCodecFactory()));
chain.addLast("dummy", new DummyIoFilter());
chain.addLast("executor2" , new ExecutorFilter());
// add the MdcInjectionFilter instance after every ExecutorFilter
// it's important to use the same MdcInjectionFilter instance
chain.addLast("mdc-injector2", mdcInjectionFilter);