@Test(expected = UnsupportedOperationException.class)
public void testSetValue() {

  PreferenceArray prefs = new BooleanItemPreferenceArray(3);
  assertEquals(3, prefs.length());
  assertEquals(1.0f, prefs.getValue(2), EPSILON);
  prefs.setValue(0, 1.0f);
}