@Test
void testUnknownIndex() throws Exception {

    String encoded = "BE";
    ByteBuffer buffer = ByteBuffer.wrap(TypeUtils.fromHexString(encoded));
    HpackDecoder decoder = new HpackDecoder(128, 8192);
    try {
        decoder.decode(buffer);
        fail();
    } catch (HpackException.SessionException e) {
        assertTrue(e.getMessage().startsWith("Unknown index"));
    }
}