assertNotNull(preferences);
List<Datastore> datastores = preferences.getUserDatastores();
assertEquals(2, datastores.size());
Datastore datastore;
datastore = datastores.get(0);
assertEquals("JdbcDatastore[name=orderdb,url=jdbc:hsqldb:res:orderdb;readonly=true]", datastore.toString());
assertEquals(null, datastore.getDescription());
datastore = datastores.get(1);
assertEquals("CsvDatastore[name=foobar, filename=C:\\foobar.txt, quoteChar='\"', separatorChar=',', encoding=UTF-8]", datastore.toString());
assertEquals("C:\\foobar.txt", ((CsvDatastore) datastore).getFilename());
assertEquals(null, datastore.getDescription());
List<Dictionary> dictionaries = preferences.getUserDictionaries();
assertEquals(1, dictionaries.size());
assertEquals("SimpleDictionary[name=my dictionary]", dictionaries.get(0).toString());