### Question:
ArrayUtils { @SuppressWarnings("PMD.AvoidArrayLoops") public static Long[] toObject(long[] array) { if (array == null || array.length == 0) { return EMPTY_LONG_OBJECT_ARRAY; } final Long[] result = new Long[array.length]; for (int i = 0; i < array.length; i++) { result[i] = array[i]; } return result; } private  ArrayUtils(); @SuppressWarnings("PMD.AvoidArrayLoops") static Long[] toObject(long[] array); @SuppressWarnings("PMD.AvoidArrayLoops") static long[] toPrimitive(Long[] array);  }### Answer:
@Test public void toObjectCreatesLongArray() throws Exception { assertArrayEquals(new Long[]{1L, 2L, 3L, 4L, 5L}, toObject(new long[]{1, 2, 3, 4, 5})); }
@Test public void toObjectCreatesLongArray() throws Exception { assertArrayEquals(new Long[] {1L, 2L, 3L, 4L, 5L}, toObject(new long[] {1, 2, 3, 4, 5})); }
@Test public void nullBecomesEmptyLongArray() throws Exception { assertArrayEquals(new Long[0], toObject(null)); }