### Question:
ArrayUtils { public static boolean isArray(Object o) { if (isPrimitiveArray(o)) { return true; } else if (o instanceof Object[]) { return true; } return false; } private  ArrayUtils(); static boolean isPrimitiveArray(Object o); static boolean isPrimitiveOrStringArray(Object o); static boolean isArray(Object o); static boolean arrayFriendlyEquals(Object o1, Object o2); static int arrayFriendlyHashCode(Object o); static String primitiveOrStringArrayToString(Object o); static boolean arrayFriendlyMapEquals(Map<String, T> map1, Map<String, T> map2);  }### Answer:
@Test public void shouldCorrectlyIdentifyArray() { assertTrue(isArray(new byte[]{})); assertTrue(isArray(new char[]{})); assertTrue(isArray(new boolean[]{})); assertTrue(isArray(new long[]{})); assertTrue(isArray(new double[]{})); assertTrue(isArray(new int[]{})); assertTrue(isArray(new short[]{})); assertTrue(isArray(new float[]{})); assertTrue(isArray(new String[]{})); assertTrue(isArray(new Object[]{})); assertFalse(isArray(123)); }