ConfigurationUtil { public static Configuration getDefaultConfiguration(final ConfigurationParameters loginConfiguration) { return new Configuration() { @Override public AppConfigurationEntry[] getAppConfigurationEntry(String applicationName) { Map<String, ?> options = loginConfiguration.getConfigValue(applicationName, Collections.<String, Object>emptyMap()); return new AppConfigurationEntry[]{new DefaultEntry(options)}; } }; } private  ConfigurationUtil(); static Configuration getDefaultConfiguration(final ConfigurationParameters loginConfiguration); static Configuration getJackrabbit2Configuration(final ConfigurationParameters loginConfiguration);  }
@Test public void testGetDefaultConfiguration() { Configuration c = ConfigurationUtil.getDefaultConfiguration(ConfigurationParameters.EMPTY); AppConfigurationEntry[] entries = c.getAppConfigurationEntry("any"); assertEquals(1, entries.length); AppConfigurationEntry entry = entries[0]; assertEquals("org.apache.jackrabbit.oak.security.authentication.user.LoginModuleImpl", entry.getLoginModuleName()); assertEquals(AppConfigurationEntry.LoginModuleControlFlag.REQUIRED, entry.getControlFlag()); }