@Test
public void testCreateUpdateUserAccount() {
try {
UserAccount userAccount = this.userAccountDao.getUserAccountByUsername( "testuser" );
Assert.assertNotNull( userAccount );
userAccount.getPreferences().setTheme( "Testtheme" );
this.userAccountDao.saveUserAccount( userAccount );
UserAccount userAccount2 = this.userAccountDao.getUserAccountByUsername( "testuser" );
Assert.assertEquals( "Testtheme", userAccount2.getPreferences().getTheme() );
}
catch (Exception e) {
log.error( e.getMessage(), e );
Assert.fail( e.getMessage() );
}