@Test
public void testDiscardUnknownFrame() throws Exception {

    short type = 5;
    byte flags = (byte) 0xFF;
    int length = 8;
    ByteBuf buf = Unpooled.buffer(SPDY_HEADER_SIZE + length);
    encodeControlFrameHeader(buf, type, flags, length);
    buf.writeLong(RANDOM.nextLong());
    decoder.decode(buf);
    verifyZeroInteractions(delegate);
    assertFalse(buf.isReadable());
    buf.release();
}