private UserAccountDao userAccountDao;
public void testWriteRead() {
UserAccount account = this.userAccountDao.getUserAccountByUsername( "schlierf3" );
account.setCreated( new Date() );
account.setLastLogin( new Date() );
account.setUsername( "schlierf3" );
Identity identity = new Identity();
identity.setDisplayName( "Juergen Schlierf" );
identity.setEmail( "test@test.de" );
account.addIdentity( identity );
Long id = this.userAccountDao.saveUserAccount( account );
assertNotNull( id );
assertTrue( id.intValue() > 0 );
UserAccount readAccount = this.userAccountDao.getUserAccountByUsername( "schlierf3" );
assertNotNull( readAccount );
assertEquals( "schlierf3", readAccount.getUsername() );
}