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