TimeZone newTimeZone = TimeZone.getTimeZone("Europe/Paris");
implWithRealCryptoEngine.changePreferences(userId,
new Preferences(newLocale,
newTimeZone,
true,
new PasswordGenerationPreferences(4, false, true, false, true)));
UserInformation userInfoAfterChange =
implWithRealCryptoEngine.login(userId, "masterPassword");
assertEquals(newLocale, userInfoAfterChange.getPreferences().getLocale());
assertEquals(newTimeZone, userInfoAfterChange.getPreferences().getTimeZone());
assertTrue(userInfoAfterChange.getPreferences().isPasswordsUnmasked());