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