public void testOnlyRemoteAddress() throws IOException, InterruptedException {
DefaultIoFilterChainBuilder chain = new DefaultIoFilterChainBuilder();
chain.addFirst("mdc-injector", new MdcInjectionFilter(
MdcInjectionFilter.MdcKey.remoteAddress));
chain.addLast("dummy", new DummyIoFilter());
chain.addLast("protocol", new ProtocolCodecFilter(new DummyProtocolCodecFactory()));
SimpleIoHandler simpleIoHandler = new SimpleIoHandler();
acceptor.setHandler(simpleIoHandler);
acceptor.bind(new InetSocketAddress(PORT));
acceptor.setFilterChainBuilder(chain);