assertTrue(Arrays.equals(new boolean[0], ret));
ret = Arrays.copyOf(emptyArray, 5);
assertEquals(5, ret.length);
for (; i < ret.length; i++) {
assertEquals(false, ret[i]);
<BUG>}
}</BUG>
public void testCopyOfByte() {
byte[] a1 = {9, 8, 7, 5, 1, 2, 3, 4, 0};
byte[] ret = Arrays.copyOf(a1, a1.length);

assertTrue(Arrays.equals(new boolean[0], ret));
ret = Arrays.copyOf(emptyArray, 5);
assertEquals(5, ret.length);
for (; i < ret.length; i++) {
assertEquals(false, ret[i]);
}
ret = Arrays.copyOf(new boolean[] {false, true}, 3);
assertTrue(Arrays.equals(new boolean[] {false, true, false}, ret));
}
public void testCopyOfByte() {
byte[] a1 = {9, 8, 7, 5, 1, 2, 3, 4, 0};
byte[] ret = Arrays.copyOf(a1, a1.length);
