}
@Test
public void testAddAllNoBackingArray2() throws Exception {
FloatBuffer buffer = ByteBuffer.allocateDirect(Float.SIZE / Byte.SIZE * 11).asFloatBuffer();
buffer.position(1).limit(9);
BoundedFloatArray notBackedByArray = BoundedFloatArray.valueOf(buffer);
notBackedByArray.setAll(array);
notBackedByArray.addAll(FloatArray.unsafeValueOf((float) 5, (float) 5));
assertEquals(10, notBackedByArray.length());
assertArrayEquals(new float[]{1, 1, 2, 1, 2, 3, 3, 4, 5, 5}, notBackedByArray.toArray(), 0);