### Question:
ArrayUtils { public static boolean isPrimitiveArray(Object o) { if (o instanceof byte[]) { return true; } else if (o instanceof char[]) { return true; } else if (o instanceof boolean[]) { return true; } else if (o instanceof long[]) { return true; } else if (o instanceof double[]) { return true; } else if (o instanceof int[]) { return true; } else if (o instanceof short[]) { return true; } else if (o instanceof float[]) { 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 shouldCorrectlyIdentifyPrimitiveArray() { assertTrue(isPrimitiveArray(new byte[]{})); assertTrue(isPrimitiveArray(new char[]{})); assertTrue(isPrimitiveArray(new boolean[]{})); assertTrue(isPrimitiveArray(new long[]{})); assertTrue(isPrimitiveArray(new double[]{})); assertTrue(isPrimitiveArray(new int[]{})); assertTrue(isPrimitiveArray(new short[]{})); assertTrue(isPrimitiveArray(new float[]{})); assertFalse(isPrimitiveArray(new String[]{})); assertFalse(isPrimitiveArray(123)); assertFalse(isPrimitiveArray(new Object[]{})); }