@Test
 public void testSetValue() {
   GenericUserPreferenceArray prefs = new GenericUserPreferenceArray(3);
   assertEquals(3, prefs.length());
   prefs.setValue(0, 1.0f);
   prefs.setValue(1, 2.0f);
   prefs.setValue(2, 3.0f);
   assertEquals(1.0f, prefs.getValue(0), EPSILON);
   assertEquals(2.0f, prefs.getValue(1), EPSILON);
   assertEquals(3.0f, prefs.getValue(2), EPSILON);
 }
 @Test
 public void testClone() {
   GenericUserPreferenceArray prefs = new GenericUserPreferenceArray(3);
   prefs.set(0, new GenericPreference(1L, 3L, 5.0f));
   prefs.set(1, new GenericPreference(1L, 1L, 4.0f));
   prefs.set(2, new GenericPreference(1L, 2L, 3.0f));
   prefs = prefs.clone();
   assertEquals(3L, prefs.getItemID(0));
   assertEquals(1L, prefs.getUserID(1));
   assertEquals(3.0f, prefs.getValue(2), EPSILON);
 }