@Test
public void testUnknownSpdyPingFrameFlags() throws Exception {

    short type = 6;
    byte flags = (byte) 0xFF; // undefined flags
    int length = 4;
    int id = RANDOM.nextInt();
    ByteBuf buf = Unpooled.buffer(SPDY_HEADER_SIZE + length);
    encodeControlFrameHeader(buf, type, flags, length);
    buf.writeInt(id);
    decoder.decode(buf);
    verify(delegate).readPingFrame(id);
    assertFalse(buf.isReadable());
    buf.release();
}