### Question:
UsersResourceFacadeImp extends CoreDBServiceFacadeImp<Users, Long> implements UsersResourceFacade { @Override public UsersDTO addUser(UsersDTO user) { try { Users u = user.toEntity(); em.persist(u); em.flush(); em.refresh(u); return new UsersDTO(u); } catch (Exception e) { logger.error("Error in addUser.", e); return null; } } protected  UsersResourceFacadeImp(); @Override UsersDTO getUserByName(String name); @Override UsersDTO getUserById(Long id); @Override List<UsersDTO> getAllUsersByName(String name); @Override List<CollectionDTO> findAllCrisisByUserID(Long id); @Override UsersDTO addUser(UsersDTO user); @Override Integer deleteUser(Long id); @Override List<UsersDTO> findByCriteria(String columnName, Object value); @Override List<UsersDTO> getAllUsers();  }### Answer:
@Test public void testAddUser() { assertEquals(userName, user.getName()); }