}
@Test
public void testAddAllNoBackingArray2() throws Exception {
IntBuffer buffer = ByteBuffer.allocateDirect(Integer.SIZE / Byte.SIZE * 11).asIntBuffer();
buffer.position(1).limit(9);
BoundedIntArray notBackedByArray = BoundedIntArray.valueOf(buffer);
notBackedByArray.setAll(array);
notBackedByArray.addAll(IntArray.unsafeValueOf(5, 5));
assertEquals(10, notBackedByArray.length());
assertArrayEquals(new int[]{1, 1, 2, 1, 2, 3, 3, 4, 5, 5}, notBackedByArray.toArray());