public void FailFastTooLongFrameRecovery()
        {
            EmbeddedChannel ch = new EmbeddedChannel(
                new DelimiterBasedFrameDecoder(1, Delimiters.NullDelimiter()));

            for (int i = 0; i < 2; i++)
            {
                Assert.Throws <TooLongFrameException>(() => ch.WriteInbound(Unpooled.WrappedBuffer(new byte[] { 1, 2 })));

                ch.WriteInbound(Unpooled.WrappedBuffer(new byte[] { 0, (byte)'A', 0 }));
                var buf = ch.ReadInbound <IByteBuffer>();
                Assert.Equal("A", buf.ToString(Encoding.UTF8));

                buf.Release();
            }
        }