ConfigurationEntry authenticationProviderEntry = new ConfigurationEntry(authenticationId,
AuthenticationProvider.class.getSimpleName(), authenticationAttributes, Collections.singleton(preferencesId),
_configurationStore);
try
{
AuthenticationProvider authenticationProvider = _recoverer.create(recovererProvider, authenticationProviderEntry,
_broker);
assertNotNull("Authentication provider was not recovered", authenticationProvider);
assertEquals("Unexpected name", "test-authenticator", authenticationProvider.getName());
assertEquals("Unexpected id", authenticationId, authenticationProvider.getId());
PreferencesProvider preferencesProvider = authenticationProvider.getPreferencesProvider();
assertNotNull("Preferences provider was not recovered", preferencesProvider);
assertEquals("Unexpected path", file.getAbsolutePath(),
preferencesProvider.getAttribute(FileSystemPreferencesProvider.PATH));
}
finally