Utils { public static Object[] arrayPut(final Object[] array, final int pos, final Object value){ final Object[] ret = Arrays.copyOf(array, array.length+1); if(pos<array.length){ System.arraycopy(array, pos, ret, pos+1, array.length-pos); } ret[pos] = value; return ret; }  static void packLong(DataOutput out, long value); static long unpackLong(DataInput in); static void packInt(DataOutput in, int value); static int unpackInt(DataInput is); static int longHash(final long key); static E clone(E value, Serializer<E> serializer); static Object[] arrayPut(final Object[] array, final int pos, final Object value); static long[] arrayLongPut(final long[] array, final int pos, final long value); static int nextPowTwo(final int value); static File tempDbFile(); static boolean isWindows(); static boolean isAndroid(); static boolean JVMSupportsLargeMappedFiles(); static void checkMapValueIsNotCollecion(Object value); static void printProgress(final AtomicLong value); static DataOutput2 serializer(Serializer<A> serializer, A value); @SuppressWarnings("rawtypes")
	static final Comparator<Comparable> COMPARABLE_COMPARATOR; @SuppressWarnings("rawtypes")
	static final Comparator<Comparable> COMPARABLE_COMPARATOR_WITH_NULLS; static final String EMPTY_STRING; static final String UTF8; static Random RANDOM; }
@Test public void testArrayPut(){ assertEquals(asList(1,2,3,4,5), asList(Utils.arrayPut(new Integer[]{1, 2, 4, 5}, 2, 3))); assertEquals(asList(1,2,3,4,5), asList(Utils.arrayPut(new Integer[]{2, 3, 4, 5}, 0, 1))); assertEquals(asList(1,2,3,4,5), asList(Utils.arrayPut(new Integer[]{1, 2, 3, 4}, 4, 5))); }