@Test public void headersPaddingPriority() { ByteBuffer buffer = ByteBuffer.wrap(TestMessages.HEADERS_PADDING_PRIORITY_BUFFER); Http2HeadersFrame frame = (Http2HeadersFrame) decoder.decode(buffer, context); assertNotNull(frame); assertEquals(23, frame.getLength()); assertEquals(1, frame.getType()); assertEquals(0x28, frame.getFlags()); assertEquals(3, frame.getStreamID()); assertEquals(10, frame.getWeight()); assertEquals(1, frame.getHeaderBlockFragment().length); assertEquals(0x0082, frame.getHeaderBlockFragment()[0] & 0x00FF); assertEquals(16, frame.getPadding().length); assertArrayEquals(new byte[] {0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6E, 0x67, 0x2E}, frame.getPadding()); }
@Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); }
Http2ProtocolDecoder implements ProtocolDecoder<ByteBuffer, Http2Frame, Http2Connection> { @Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); } }
Http2ProtocolDecoder implements ProtocolDecoder<ByteBuffer, Http2Frame, Http2Connection> { @Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); }  }
Http2ProtocolDecoder implements ProtocolDecoder<ByteBuffer, Http2Frame, Http2Connection> { @Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); }  @Override Http2Connection createDecoderState(); @Override Http2Frame decode(ByteBuffer input, Http2Connection context); @Override void finishDecode(Http2Connection context); }
Http2ProtocolDecoder implements ProtocolDecoder<ByteBuffer, Http2Frame, Http2Connection> { @Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); }  @Override Http2Connection createDecoderState(); @Override Http2Frame decode(ByteBuffer input, Http2Connection context); @Override void finishDecode(Http2Connection context);  }