in = PreferencesTest.class
.getResourceAsStream("/prefs/java/util/prefs/userprefs.xml");
Preferences.importPreferences(in);
prefs = Preferences.userNodeForPackage(PreferencesTest.class);
assertEquals(1, prefs.childrenNames().length);
assertTrue(prefs.nodeExists("mock/child/grandson"));
assertEquals("newvalue", prefs.get("prefskey", null));
assertEquals("oldvalue2", prefs.get("prefskey2", null));
assertEquals("newvalue3", prefs.get("prefskey3", null));