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