@Test
public void toArrayZeroLength() throws BufferException {

    ByteBuffer buffer = createCircledByteBuffer(TEST_BYTES1.length+20);
    //buffer.add(TEST_BYTES1);
    byte[] zeroArray = new byte[0];
    byte[] copyArray = buffer.toArray();
    Assert.assertArrayEquals(zeroArray, copyArray);
}