array.setAll(LongArray.unsafeValueOf());
assertArrayEquals(new long[]{}, array.toArray());
assertEquals(0, array.length());
assertEquals(offset, array.offset());
LongBuffer buffer = array.buffer();
buffer.rewind().limit(buffer.capacity());
while (buffer.hasRemaining()) {
assertEquals(0, buffer.get());
}
}