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

    ByteBuf buf = Unpooled.buffer();
    try {
        hpackEncoder.setMaxHeaderTableSize(buf, MAX_HEADER_TABLE_SIZE + 1);
    } finally {
        buf.release();
    }
}