@Test(expected=BufferSizeException.class)
public void addWithArrayToCauseBufferSizeException() throws BufferException {

    ByteBuffer buffer = new ByteBuffer(TEST_BYTES1.length-1);
    buffer.add(TEST_BYTES1);
}