vmPipeAcceptor.bind(vmPipeAddress);
final VmPipeConnector vmPipeConnector = new VmPipeConnector();
vmPipeConnector.getFilterChain().addLast("executor", new ExecutorFilter());
vmPipeConnector.setHandler(new IoHandlerAdapter());
ConnectFuture connectFuture = vmPipeConnector.connect(vmPipeAddress);
connectFuture.awaitUninterruptibly();
connectFuture.getSession().write(IoBuffer.wrap(new byte[1]));
connectFuture.getSession().close(false).awaitUninterruptibly();
semaphore.tryAcquire(1, TimeUnit.SECONDS);
vmPipeAcceptor.unbind(vmPipeAddress);
Assert.assertEquals(1, connectFuture.getSession().getWrittenBytes());
Assert.assertEquals("ABCD", stringBuffer.toString());
}