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