@Test
public void testCollectMinAggBuffer() throws HiveException {
MapCollectMaxUDAFEvaluator maxEval = new MapCollectMaxUDAFEvaluator(false);
WritableStringObjectInspector keyOI = (WritableStringObjectInspector) PrimitiveObjectInspectorFactory.getPrimitiveWritableObjectInspector(PrimitiveCategory.STRING);
WritableIntObjectInspector valOI = (WritableIntObjectInspector) PrimitiveObjectInspectorFactory.getPrimitiveWritableObjectInspector(PrimitiveCategory.INT);
maxEval.init( Mode.PARTIAL1, new ObjectInspector[] { keyOI, valOI} );