ParserRegistry parserRegistry = new ParserRegistry(Thread.currentThread().getContextClassLoader());
ConfigurationBuilderHolder holder = parserRegistry.parseFile("configuration-parsing-test-enbledInDefault.xml");
Configuration defaultConfiguration = holder.getDefaultConfigurationBuilder().build();
assert defaultConfiguration.indexing().properties().size() == 2;
assert defaultConfiguration.indexing().enabled();
assert defaultConfiguration.indexing().properties().getProperty("hibernate.search.default.directory_provider").equals("someDefault");
final Map<String, ConfigurationBuilder> namedConfigurations = holder.getNamedConfigurationBuilders();
final Configuration nonSearchableCfg = namedConfigurations.get("not-searchable").build();