@Test
public void decodeExtraPayload() {

    Http2Connection connection = new Http2Connection();
    ByteBuffer buffer = ByteBuffer.wrap(TestMessages.RST_STREAM_EXTRA_PAYLOAD_BUFFER);
    Http2RstStreamFrame frame = (Http2RstStreamFrame) connection.decode(buffer);
    assertNotNull(frame);
    assertEquals(6, frame.getLength());
    assertEquals(3, frame.getType());
    assertEquals(0x00, frame.getFlags());
    assertEquals(32, frame.getStreamID());
    assertEquals(256, frame.getErrorCode());
}