DrillConfig c = DrillConfig.createClient();
SystemOptionManager m = new SystemOptionManager(c, new LocalPStoreProvider(c));
m.init();
QueryClassLoader ql = new QueryClassLoader(DrillConfig.create(), m);
ql.injectByteCode("org.apache.drill.Pickle$OutgoingBatch", output);
Class<?> clz = ql.loadClass("org.apache.drill.Pickle$OutgoingBatch");
clz.getMethod("x").invoke(null);
}