### Question:
ParserHelper { public static String sqlTypeToHiveType(Integer type) { switch (type) { case Types.BIGINT: return "bigint"; case Types.NUMERIC: case Types.DOUBLE: case Types.DECIMAL: return "double"; case Types.INTEGER: return "int"; case Types.FLOAT: return "float"; case Types.TINYINT: return "tinyint"; case Types.DATE: return "date"; case Types.TIMESTAMP: return "timestamp"; case Types.BOOLEAN: return "boolean"; case Types.BINARY: return "binary"; default: return "string"; } }  static String sqlTypeToHiveType(Integer type); static String sqlTypeToHiveType(JDBCType jdbcType); static JDBCType deriveJDBCDataType(List<String> values); static void deriveDataTypes(TableSchemaType type, List<? extends Field> fields); static DataTypeDescriptor hiveTypeToDescriptor(String hiveType); static String toNativeType(Integer dataType);  }### Answer:
@Test public void testSqlTypeToHiveType() throws Exception { assertEquals(ParserHelper.sqlTypeToHiveType(JDBCType.DOUBLE), "double"); }