int[] value1 = new int[] { 11, 12, 13 };
int[] value2 = new int[] { 21, 22, 23 };
int[] value3 = new int[] { 31, 32, 33 };
IPreference pref = fFactory.createPreference(key1);
pref.putIntegers(value1);
fDao.save(pref);
pref = fFactory.createPreference(key2);
pref.putIntegers(value2);
fDao.save(pref);
pref = fFactory.createPreference(key3);
pref.putIntegers(value3);
fDao.save(pref);
assertEquals(true, Arrays.equals(value1, fDao.load(key1).getIntegers()));
assertEquals(true, Arrays.equals(value2, fDao.load(key2).getIntegers()));
assertEquals(true, Arrays.equals(value3, fDao.load(key3).getIntegers()));
value2 = new int[] { 110, 120, 130 };
pref = fDao.loadOrCreate(key2);
pref.putIntegers(value2);
fDao.save(pref);
assertEquals(true, Arrays.equals(value1, fDao.load(key1).getIntegers()));
assertEquals(true, Arrays.equals(value2, fDao.load(key2).getIntegers()));
assertEquals(true, Arrays.equals(value3, fDao.load(key3).getIntegers()));