@Test
public void testDataFrame() throws Exception {

    final FrameFactory frameFactory = new DefaultFrameFactory();
    final byte[] data = new byte[]{'a', 'b', 'c', 'd', 'e', 'f'};
    final Frame<ByteBuffer> dataFrame = frameFactory.createData(23, ByteBuffer.wrap(data), true);
    Assert.assertEquals(FrameType.DATA.value, dataFrame.getType());
    Assert.assertEquals(23, dataFrame.getStreamId());
    Assert.assertEquals(1L, dataFrame.getFlags());
}