@Test
void testBadResize() throws Exception {

    /*
    4. Dynamic Table Management
    4.2. Maximum Table Size
      × 1: Sends a dynamic table size update at the end of header block
        -> The endpoint MUST treat this as a decoding error.
           Expected: GOAWAY Frame (Error Code: COMPRESSION_ERROR)
                     Connection closed
    */
    String encoded = "203f136687A0E41d139d090760881c6490B2Cd39Ba7f20";
    ByteBuffer buffer = ByteBuffer.wrap(TypeUtils.fromHexString(encoded));
    HpackDecoder decoder = new HpackDecoder(4096, 8192);
    try {
        decoder.decode(buffer);
        fail();
    } catch (CompressionException e) {
        assertTrue(e.getMessage().contains("Dynamic table resize after fields"));
    }
}