assertTrue(Arrays.equals(new Object[0], ret));
ret = Arrays.copyOf(emptyArray, 5);
assertEquals(5, ret.length);
for (; i < ret.length; i++) {
assertEquals(null, ret[i]);
<BUG>}
}</BUG>
public void testCopyOfRangeBoolean() {
boolean[] a1 = {true, true, false, true, true};
boolean[] ret = Arrays.copyOfRange(a1, 0, a1.length);

assertTrue(Arrays.equals(new Object[0], ret));
ret = Arrays.copyOf(emptyArray, 5);
assertEquals(5, ret.length);
for (; i < ret.length; i++) {
assertEquals(null, ret[i]);
}
ret = Arrays.copyOf(new Object[] {obj1, obj2}, 3);
assertTrue(Arrays.equals(new Object[] {obj1, obj2, null}, ret));
}
public void testCopyOfRangeBoolean() {
boolean[] a1 = {true, true, false, true, true};
boolean[] ret = Arrays.copyOfRange(a1, 0, a1.length);
