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

    ByteBuffer buffer = new ByteBuffer(TEST_BYTES1);
    ByteBuffer copyBuffer = buffer.copy(10, 1, 0);
}