assertEquals("User should have USER role by default", Role.ROLE_USER, user.getRole());
assertEquals("No token generated", 1, tokenDao.findAll().size());
Token token = tokenDao.findAll().get(0);
assertEquals("Email address not stored correctly in token.", EMAIL.toLowerCase(), token.getEmail());
assertNotNull("No token generated", token.getToken());
<BUG>userService.activate(EMAIL, token.getToken());

user = userService.findByID(user.getId());

assertNotNull("User activation date should have value", user.getActivationDate());
</BUG>
assertEquals("Token should be removed", 0, tokenDao.findAll().size());

assertEquals("User should have USER role by default", Role.ROLE_USER, user.getRole());
assertEquals("No token generated", 1, tokenDao.findAll().size());
Token token = tokenDao.findAll().get(0);
assertEquals("Email address not stored correctly in token.", EMAIL.toLowerCase(), token.getEmail());
assertNotNull("No token generated", token.getToken());
Token token2 = userService.activate(EMAIL, token.getToken());
User user2 = userService.findByID(user.getId());
assertNotNull("User activation date should have value", user2.getActivationDate());
assertEquals("Token should be removed", 0, tokenDao.findAll().size());
