### Question:
DefaultHttp2FrameReader implements Http2FrameReader, Http2FrameSizePolicy, Configuration { private void readPriorityFrame( final ChannelHandlerContext ctx, final ByteBuf payload, final Http2FrameListener listener) throws Http2Exception { final long word1 = payload.readUnsignedInt(); final boolean exclusive = (word1 & 0x80000000L) != 0; final int streamDependency = (int) (word1 & 0x7FFFFFFFL); if (streamDependency == streamId) { throw streamError(streamId, PROTOCOL_ERROR, "A stream cannot depend on itself."); } final short weight = (short) (payload.readUnsignedByte() + 1); listener.onPriorityRead(ctx, streamId, streamDependency, weight, exclusive); } DefaultHttp2FrameReader();  DefaultHttp2FrameReader(final boolean validateHeaders);  DefaultHttp2FrameReader(final Http2HeadersDecoder headersDecoder); @Override Http2HeadersDecoder.Configuration headersConfiguration(); @Override Configuration configuration(); @Override Http2FrameSizePolicy frameSizePolicy(); @Override void maxFrameSize(final int max); @Override int maxFrameSize(); @Override void close(); @Override void readFrame(
      final ChannelHandlerContext ctx, final ByteBuf input, final Http2FrameListener listener);  }### Answer:
@Test public void readPriorityFrame() throws Http2Exception { final ByteBuf input = Unpooled.buffer(); try { writePriorityFrame(input, 1, 0, 10); frameReader.readFrame(ctx, input, listener); } finally { input.release(); } }