// let's login the current user so we can check against roles and permissions:
if ( !currentUser.isAuthenticated() ) {
UsernamePasswordToken token = new UsernamePasswordToken( "lonestarr", "vespa" );
token.setRememberMe( true );
try {
currentUser.login( token );
} catch ( UnknownAccountException uae ) {
fail( "There is no user with username of " + token.getPrincipal() );
} catch ( IncorrectCredentialsException ice ) {
fail( "Password for account " + token.getPrincipal() + " was incorrect!" );
} catch ( LockedAccountException lae ) {