### Question:
DataType { public static boolean isArrayOrCollection(Class<?> parameterType) { return (parameterType.isArray() || Collection.class.isAssignableFrom(parameterType)); }  static boolean isSingleValueType(Class<?> clazz); static boolean isArrayOrCollection(Class<?> parameterType); static boolean isNumber(Class<?> clazz); static boolean isInteger(Class<?> clazz); static boolean isLong(Class<?> clazz); static boolean isFloat(Class<?> clazz); static boolean isDouble(Class<?> clazz); static boolean isByte(Class<?> clazz); static boolean isShort(Class<?> clazz); static boolean isBoolean(Class<?> clazz); static boolean isEnum(Class<?> clazz); static boolean isString(Class<?> parameterType); static boolean isBigInteger(Class<?> clazz); static boolean isBigDecimal(Class<?> clazz); static boolean isDate(Class<?> clazz); static boolean isCalendar(Class<?> clazz); static boolean isCurrency(Class<?> clazz); static Object asScalarValue(Object bean); static Object asType(Class<?> type, String string); static boolean isIsoLatin1Number(String str);  }### Answer:
@Test public void isArrayOrCollection() { assertTrue(DataType.isArrayOrCollection(String[].class)); assertTrue(DataType.isArrayOrCollection(List.class)); assertTrue(DataType.isArrayOrCollection(Set.class)); assertTrue(DataType.isArrayOrCollection(Collection.class)); assertFalse(DataType.isArrayOrCollection(Map.class)); assertFalse(DataType.isArrayOrCollection(Object.class)); }