public class TestAgg {
static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(TestAgg.class);
DrillConfig c = DrillConfig.create();
private SimpleRootExec doTest(final DrillbitContext bitContext, UserClientConnection connection, String file) throws Exception{
new NonStrictExpectations(){{
bitContext.getMetrics(); result = new MetricRegistry("test");
bitContext.getAllocator(); result = BufferAllocator.getAllocator(c);
}};
PhysicalPlanReader reader = new PhysicalPlanReader(c, c.getMapper(), CoordinationProtos.DrillbitEndpoint.getDefaultInstance());