@Test
public void dataPayloadPadding() {

    ByteBuffer buffer = ByteBuffer.wrap(TestMessages.DATA_PAYLOAD_PADDING_BUFFER);
    Http2DataFrame frame = (Http2DataFrame) decoder.decode(buffer, context);
    assertNotNull(frame);
    assertEquals(13, frame.getLength());
    assertEquals(0, frame.getType());
    assertEquals(0x08, frame.getFlags());
    assertEquals(50, frame.getStreamID());
    assertEquals(10, frame.getData().length);
    assertArrayEquals(new byte[] {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A}, frame.getData());
    assertEquals(2, frame.getPadding().length);
    assertArrayEquals(new byte[] {0x0E, 0x28}, frame.getPadding());
}