private void testType(Class<?> clazz, Object javaVal, Object defaultSqlVal, Object sqlArg, String defaultValStr,
DataType dataType, String columnName, boolean isValidGeneratedType, boolean isAppropriateId,
boolean isEscapedValue, boolean isPrimitive, boolean isSelectArgRequired, boolean isStreamType,
boolean isComparable, boolean isConvertableId) throws Exception {
DataPersister dataPersister = dataType.getDataPersister();
DatabaseConnection conn = connectionSource.getReadOnlyConnection();
CompiledStatement stmt = null;
try {
stmt = conn.compileStatement("select * from " + TABLE_NAME, StatementType.SELECT, noFieldTypes);
DatabaseResults results = stmt.runQuery();
assertTrue(results.next());
int colNum = results.findColumn(columnName);
FieldType fieldType =
FieldType.createFieldType(connectionSource, TABLE_NAME, clazz.getDeclaredField(columnName), clazz);