@Test
public void decodeLargerThanHeaderListSizeButLessThanGoAwayWithInitialDecoderSettings() throws Exception {

    ByteBuf buf = encode(b(":method"), b("GET"), b("test_header"),
        b(String.format("%09000d", 0).replace('0', 'A')));
    final int streamId = 1;
    try {
        decoder.decodeHeaders(streamId, buf);
        fail();
    } catch (Http2Exception.HeaderListSizeException e) {
        assertEquals(streamId, e.streamId());
    } finally {
        buf.release();
    }
}