".prefs.json",
"{\"test_user\":{\"pref1\": \"pref1Value\", \"pref2\": 1.0} }");
try
{
attributes.put(FileSystemPreferencesProvider.PATH, file.getAbsolutePath());
PreferencesProvider provider = new FileSystemPreferencesProviderImpl(attributes,_authenticationProvider);
provider.open();
assertNotNull("Preferences provider was not recovered", provider);
assertEquals("Unexpected name", "test-provider", provider.getName());
assertEquals("Unexpected id", id, provider.getId());
assertEquals("Unexpected path", file.getAbsolutePath(), provider.getAttribute(
FileSystemPreferencesProvider.PATH));
}
finally
{
file.delete();