@Test
public void testGetProto() throws InternalException, ClassNotFoundException {
FunctionDesc desc = new FunctionDesc("sum", TestSum.class, FunctionType.GENERAL,
CatalogUtil.newSimpleDataType(Type.INT4),
CatalogUtil.newSimpleDataTypeArray(Type.INT4, Type.INT8));
FunctionDescProto proto = desc.getProto();
FunctionDesc fromProto = new FunctionDesc(proto);
assertEquals(desc, fromProto);
assertEquals(desc.toJson(), fromProto.toJson());
}