@Test
public void testIllegalSpdyDataFrameStreamId() throws Exception {

    int streamId = 0; // illegal stream identifier
    byte flags = 0;
    int length = 0;
    ByteBuf buf = Unpooled.buffer(SPDY_HEADER_SIZE + length);
    encodeDataFrameHeader(buf, streamId, flags, length);
    decoder.decode(buf);
    verify(delegate).readFrameError((String) any());
    assertFalse(buf.isReadable());
    buf.release();
}