bitContext.getMetrics(); result = new MetricRegistry("test");
bitContext.getAllocator(); result = BufferAllocator.getAllocator(c);
bitContext.getConfig(); result = c;
}};
StorageEngineRegistry reg = new StorageEngineRegistry(bitContext);
PhysicalPlanReader reader = new PhysicalPlanReader(c, c.getMapper(), CoordinationProtos.DrillbitEndpoint.getDefaultInstance(), reg);
PhysicalPlan plan = reader.readPhysicalPlan(Files.toString(FileUtils.getResourceAsFile(file), Charsets.UTF_8));
FunctionImplementationRegistry registry = new FunctionImplementationRegistry(c);
FragmentContext context = new FragmentContext(bitContext, FragmentHandle.getDefaultInstance(), connection, null, registry);