@Test
public void testApplyFunctionsAggregateFirst() throws CruxException{
Stack<CruxFunction> xFnStack = new Stack<CruxFunction>();
SumDoubleAggregator summer = new SumDoubleAggregator();
xFnStack.push(summer);
xFnStack.push(new Ceil());
byte[] value = Bytes.toBytes(new Double(54.5d));
FunctionUtil.applyAggregateFunctions(value, xFnStack);
byte[] value1 = Bytes.toBytes(new Double(5.25d));
FunctionUtil.applyAggregateFunctions(value1, xFnStack);
assertEquals(59.75d, summer.getAggregate());