DefaultModelManager implements ModelManager { @Override public List<User> findUsers() { List<User> userList; try { userList = createUsers(ldapDao.getDirectChildren(DnFactory.users())); } catch (NoSuchNodeException | MissingParentException e) { LOGGER.error("LDAP exception", e); throw new LdapRuntimeException(e); } return userList; } DefaultModelManager(LdapDao ldapDao); @Override List<User> findUsers(); @Override List<Assignment> findAssignments(); @Override List<Project> findProjects(); @Override List<Role> findRoles();  }
@Test @Ignore public void testFindUsers() throws InterruptedException { User user = createTestUser(); List<User> expected = Arrays.asList(user); ldapService.updateUsers(expected); assertTrue(CollectionUtils.isEqualCollection(modelManager.findUsers(), expected)); }