@Test(expected = Http2Exception.class)
public void failedWhenContinuationFrameStreamIdMismatch() throws Http2Exception {

    ByteBuf input = Unpooled.buffer();
    try {
        Http2Headers headers = new DefaultHttp2Headers()
                .authority("foo")
                .method("get")
                .path("/")
                .scheme("https");
        writeHeaderFrame(input, 1, headers,
                         new Http2Flags().endOfHeaders(false).endOfStream(true));
        writeContinuationFrame(input, 3, new DefaultHttp2Headers().add("foo", "bar"),
                new Http2Flags().endOfHeaders(true));
        frameReader.readFrame(ctx, input, listener);
    } finally {
        input.release();
    }
}