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

assertTrue(Arrays.equals(new int[0], ret));
ret = Arrays.copyOf(emptyArray, 5);
assertEquals(5, ret.length);
for (; i < ret.length; i++) {
assertEquals(0, ret[i]);
}
ret = Arrays.copyOf(new int[] {1, 2}, 3);
assertTrue(Arrays.equals(new int[] {1, 2, 0}, ret));
}
public void testCopyOfLong() {
long[] a1 = {9, 8, 7, 5, 1, 2, -1037, 3, 4, 0};
long[] ret = Arrays.copyOf(a1, a1.length);
