@Test
public void decodeWithoutPayload() {

    Http2Connection connection = new Http2Connection();
    ByteBuffer buffer = ByteBuffer.wrap(TestMessages.UNKNOWN_NO_PAYLOAD_BUFFER);
    Http2UnknownFrame frame = (Http2UnknownFrame) connection.decode(buffer);
    assertNotNull(frame);
    assertEquals(0, frame.getLength());
    assertEquals(255, frame.getType() & 0x00FF);
    assertEquals(0x00, frame.getFlags());
    assertEquals(32, frame.getStreamID());
    assertEquals(0, frame.getPayload().length);
}