public void testFindByEmail() throws DatabaseException, EmailServiceException {
final String EMAIL = "testFindByEmail@europeana.eu";
final String USERNAME = "testFindByEmail";
final String PASSWORD = "test";
final String HASH = hashPassword(PASSWORD);
<BUG>User user = userService.create(EMAIL, USERNAME, PASSWORD, null, null, null, null, null, null, null, null, "", "");
</BUG>
assertNotNull("Unable to create user", user);
assertEquals("Count doesn't match", 1, userDao.count());
assertEquals("FindAll doesn't match", 1, userDao.findAll().size());

public void testFindByEmail() throws DatabaseException, EmailServiceException {
final String EMAIL = "testFindByEmail@europeana.eu";
final String USERNAME = "testFindByEmail";
final String PASSWORD = "test";
final String HASH = hashPassword(PASSWORD);
User user = userService.create(EMAIL, USERNAME, PASSWORD, null, null, null, null, null, null, null, null, "http://europeana.eu", null);
assertNotNull("Unable to create user", user);
assertEquals("Count doesn't match", 1, userDao.count());
assertEquals("FindAll doesn't match", 1, userDao.findAll().size());
