@Test(expected=IllegalArgumentException.class)
public void addWithArrayNegativeLength() throws BufferException {

    ByteBuffer buffer = createCircledByteBuffer(100);
    buffer.add(TEST_BYTES1, 0, -1);
}