### Question:
CatalogUtil { public static String getCanonicalName(String signature, Collection<DataType> paramTypes) { DataType [] types = paramTypes.toArray(new DataType[paramTypes.size()]); return getCanonicalName(signature, types); }  static String normalizeIdentifier(String identifier); static String extractQualifier(String name); static String extractSimpleName(String name); static String getCanonicalName(String signature, Collection<DataType> paramTypes); static String getCanonicalName(String signature, DataType...paramTypes); static StoreType getStoreType(final String typeStr); static TableMeta newTableMeta(StoreType type); static TableMeta newTableMeta(StoreType type, Options options); static TableDesc newTableDesc(String tableName, Schema schema, TableMeta meta, Path path); static TableDesc newTableDesc(TableDescProto proto); static PartitionMethodDesc newPartitionMethodDesc(CatalogProtos.PartitionMethodProto proto); static TableDesc newTableDesc(String tableName, Schema schema, StoreType type, Options options, Path path); static SchemaProto getQualfiedSchema(String tableName, SchemaProto schema); static DataType newDataType(Type type, String code); static DataType newDataType(Type type, String code, int len); static DataType newSimpleDataType(Type type); static DataType [] newSimpleDataTypeArray(Type... types); static DataType newDataTypeWithLen(Type type, int length); static String columnToDDLString(Column column); static void closeQuietly(Connection conn); static void closeQuietly(Statement stmt); static void closeQuietly(ResultSet res); static void closeQuietly(Connection conn, Statement stmt); static void closeQuietly(Connection conn, ResultSet res); static void closeQuietly(Connection conn, Statement stmt, ResultSet res); final static String IDENTIFIER_DELIMITER; final static String IDENTIFIER_DELIMITER_REGEXP; }### Answer:
@Test public final void testGetCanonicalName() { String canonical = CatalogUtil.getCanonicalName("sum", CatalogUtil.newSimpleDataTypeArray(Type.INT4, Type.INT8)); assertEquals("sum(int4,int8)", canonical); }