public void testexecutedSaveToFile() throws Exception {
System.out.println("Save to file");
theTestPreferences.loadFromFile(FILE_NAME);
theTestPreferences.setPreference("test_preferences_3","test3");//Set a third one to test...
theTestPreferences.saveToFile();
SJFIO thePrefFile=new SJFIO(FILE_NAME);
thePrefFile.read();
assertEquals(thePrefFile.theFileInMem.get(0), "test_preferences: test1");
assertEquals(thePrefFile.theFileInMem.get(1),"test_preferences_2: test2");
assertEquals(thePrefFile.theFileInMem.get(2),"#this is a comment");
assertEquals(thePrefFile.theFileInMem.get(3),"test_preferences_3: test3");
}