getSession().clear();
}
@Test
public void testMapUser() {
User user1 = (User) getSession().load(User.class, user1Id);
User user2 = (User) getSession().load(User.class, user2Id);
assertNotNull(user1);
for (int i = 0; i < 100; i++) {
UserDto userDto1 = mapperFacade.map(user1, UserDto.class);
assertEquals(userDto1.getName(), user1.getName());
UserDto userDto2 = mapperFacade.map(user2, UserDto.class);
assertEquals(userDto2.getName(), user2.getName());
assertTrue(user1.getGroup().getUsers().contains(user2));
}
}