@Test
public void priorityExclusive() {

    ByteBuffer buffer = ByteBuffer.wrap(TestMessages.PRIORITY_EXCLUSIVE_MODE_BUFFER);
    Http2PriorityFrame frame = (Http2PriorityFrame) decoder.decode(buffer, context);
    assertNotNull(frame);
    assertEquals(5, frame.getLength());
    assertEquals(2, frame.getType());
    assertEquals(0x00, frame.getFlags());
    assertEquals(32, frame.getStreamID());
    assertEquals(256, frame.getStreamDependencyID());
    assertTrue(frame.getExclusiveMode());
    assertEquals(2, frame.getWeight());
}