assertEquals(user, userService.getUser(user.getId()));
}
private User testCreateUser(String role) {
User user = new User();
user.setFirstName("First");
user.setLastName("Last");
user.setPassword("" + generateRandomNumber());
user.setEmailAddress("user" + generateRandomNumber() + "@example.com");
user.setRole(role);
userService.createUser(user);
assertNotNull(user.getId());
return user;
}