private static QueryExplainer getQueryExplainer()
{
Session session = new Session("user", "test", DEFAULT_CATALOG, DEFAULT_SCHEMA, null, null);
MetadataManager metadata = new MetadataManager();
metadata.addInternalSchemaMetadata(MetadataManager.INTERNAL_CONNECTOR_ID, new DualMetadata());
List<PlanOptimizer> optimizers = new PlanOptimizersFactory(metadata).get();
return new QueryExplainer(session, optimizers, metadata, new MockPeriodicImportManager(), new MockStorageManager());
}