* error
*/
public void test02ModifyAdminPreference() throws Exception {
log.trace(">test02ModifyAdminPreference()");
Admin administrator = new Admin(Admin.TYPE_CACOMMANDLINE_USER);
AdminPreference pref = this.raAdminSession.getAdminPreference(administrator, user);
assertTrue("Error Retreiving Administrator Preference.", pref.getPreferedLanguage() == 1);
assertTrue("Error Retreiving Administrator Preference.", pref.getTheme().equals("TEST"));
pref.setPreferedLanguage(2);
boolean ret = this.raAdminSession.changeAdminPreference(administrator, user, pref);
assertTrue("Adminpref for " + user + " should exist", ret);
pref = this.raAdminSession.getAdminPreference(administrator, user);
assertEquals(pref.getPreferedLanguage(), 2);
String newuser = genRandomUserName();
ret = this.raAdminSession.changeAdminPreference(administrator, newuser, pref);
assertFalse("Adminpref for " + newuser + " should not exist", ret);
log.trace("<test02ModifyAdminPreference()");
}