private FunctionInfo maxInfo;
private FunctionInfo countInfo;
@Before
public void prepare() {
Injector injector = new ModulesBuilder().add(new AggregationImplModule()).createInjector();
Functions functions = injector.getInstance(Functions.class);
visitor = new PlanNodeStreamerVisitor(functions);
maxInfo = new FunctionInfo(new FunctionIdent(MaximumAggregation.NAME, Arrays.<DataType>asList(DataTypes.INTEGER)), DataTypes.INTEGER);
countInfo = new FunctionInfo(new FunctionIdent(CountAggregation.NAME, ImmutableList.<DataType>of()), DataTypes.LONG);
}