assertReflectionEquals(user, result);
}
@Test
public void testGetByUsernameMultipleUsersWithSameNameWhenIgnoringCase() {
JCUser user = ObjectsFactory.getUser("usernamE", "username@mail.com");
session.save(user);
session.save(ObjectsFactory.getUser("Username", "Username@mail.com"));
JCUser result = dao.getByUsername("usernamE");
assertNotNull(result);
assertReflectionEquals(user, result);
}