@Before
public void createAccount() {
Account account = accountService.createNewBatchUser("test", "", "");
GrantedAuthority[] auths = new GrantedAuthority[1];
auths[0] = new GrantedAuthorityImpl("ROLE_USER");
ApplicationUser user = new ApplicationUser(new Long(account.getId()),
account.getUserName(), account.getPassword(), true, true, true,
true, auths);
Authentication auth = new TestingAuthenticationToken(user, "ignored",
auths);
auth.setAuthenticated(true);