AbstractHashGenerator { static long[] copy(long[] src) { return Arrays.copyOf(src, src.length); } AbstractHashGenerator(Pseudorandom pseudorandom);   }
@Test public void testCopy() throws Exception { long[] x = new long[]{2, 1, 3, 2}; long[] y = AbstractHashGenerator.copy(x); assertThat(x, is(y)); assertThat(x, not(sameInstance(y))); }
@Test public void testCopy_SrcDest() throws Exception { long[] x = new long[]{42, 23, 1, 72}; long[] y = new long[4]; AbstractHashGenerator.copy(x, y); assertThat(x, is(y)); assertThat(x, not(sameInstance(y))); }