@Test
public void readSettingsFrame() throws Http2Exception {

    ByteBuf input = Unpooled.buffer();
    try {
        writeFrameHeader(input, 6, SETTINGS, new Http2Flags(), 0);
        input.writeShort(SETTINGS_MAX_HEADER_LIST_SIZE);
        input.writeInt(1024);
        frameReader.readFrame(ctx, input, listener);
        listener.onSettingsRead(ctx, new Http2Settings().maxHeaderListSize(1024));
    } finally {
        input.release();
    }
}