SearchConfigurationFromHibernateCore searchConfig = new SearchConfigurationFromHibernateCore(
getCfg(),
new ClassLoaderServiceImpl() // ORM internal class. Should be ok for testing (HF)
);
ReflectionManager reflectionManager = searchConfig.getReflectionManager();
XClass xclass = reflectionManager.toXClass( BlogEntry.class );
ConfigContext context = new ConfigContext( searchConfig, new BuildContextForTest( searchConfig ) );
MetadataProvider metadataProvider = new AnnotationMetadataProvider(
searchConfig.getReflectionManager(),
context
);