@Test(expected = SpdyProtocolException.class)
public void testHeaderBlockInvalidDeflateBlock() throws Exception {

    ByteBuf headerBlock = Unpooled.buffer(11);
    headerBlock.writeBytes(zlibHeader);
    headerBlock.writeByte(0); // Non-compressed block
    headerBlock.writeByte(0x00); // little-endian length (0)
    headerBlock.writeByte(0x00); // little-endian length (0)
    headerBlock.writeByte(0x00); // invalid one's compliment
    headerBlock.writeByte(0x00); // invalid one's compliment
    decoder.decode(ByteBufAllocator.DEFAULT, headerBlock, frame);
    headerBlock.release();
}