DataTypeUtils { public boolean isJavaType(String typeName) { Map<String, String> javaTypes = getJavaTypes(); String javaTypeCodes = javaTypes.get(typeName); if (javaTypeCodes != null) { return true; } else { return false; } }  Map<String, Code> getPrimitiveTypeCodes(); Map<String, String> getJavaTypes(); boolean isPrimitiveType(String typeName); boolean isJavaType(String typeName); boolean isArrayType(String typeName); boolean isParameterizedType(String typeName);  }
@Test public void testIsJavaType1() { boolean isJavaType = dataTypeUtils.isJavaType("Integer"); assertTrue(isJavaType); }
@Test public void testIsJavaType2() { boolean isJavaType = dataTypeUtils.isJavaType("integer"); assertFalse(isJavaType); }