@Test
public final void testAppendBuffer () {

    final ByteBuffer testBuffer = ByteBuffer.wrap(TEST_CASE_1_ARRAY);
    assertNotNull(testBuffer);
    final BinaryDataSegment dataSegment = new BinaryDataSegment(CHUNK_SIZE);
    dataSegment.append(testBuffer, testBuffer.remaining());
    assertNotNull(dataSegment);
    assertEquals(TEST_CASE_1_ARRAY.length, dataSegment.getLength());
    final ByteBuffer expectedResult = ByteBuffer.wrap(TEST_CASE_1_ARRAY_LONG);
    dataSegment.dataBuffer.rewind();
    assertTrue(expectedResult.equals(dataSegment.dataBuffer));
}