users.add(getUser("test1", 0.1));
users.add(getUser("test2", 0.2, 0.3));
users.add(getUser("test3", 0.4, 0.5, 0.6));
users.add(getUser("test4", 0.7, 0.8, 0.9, 1.0));
users.add(getUser("test5", 1.0, 1.0, 1.0, 1.0, 1.0));
GenericDataModel dummy = new GenericDataModel(users);
InverseUserFrequency iuf = new InverseUserFrequency(dummy, 10.0);
User user = dummy.getUser("test5");
for (int i = 0; i < 5; i++) {
Preference pref = user.getPreferenceFor(String.valueOf(i));
assertNotNull(pref);
assertEquals(Math.log(5.0 / (double) (5 - i)) / Math.log(iuf.getLogBase()),
iuf.getTransformedValue(pref),