### Question:
DataType { public static boolean isNumber(Class<?> clazz) { return ( Number.class.isAssignableFrom(clazz) || int.class == clazz || long.class == clazz || float.class == clazz || byte.class == clazz || short.class == clazz || double.class == clazz ); }  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 testIsNumber() throws Exception { Assert.assertTrue(DataType.isNumber(int.class)); Assert.assertTrue(DataType.isNumber(Integer.class)); }
@Test public void testIsNumberBigDecimal() throws Exception { Assert.assertTrue(DataType.isNumber(BigDecimal.class)); }