ldapDao.deleteSubtreeExcludingRoot(DnFactory.roles());
ldapDao.deleteSubtreeExcludingRoot(DnFactory.users());
}
protected Assignment createTestAssignment() {
Assignment assignment = new Assignment();
assignment.setPermissions(Lists.newArrayList("permission1", "permission2"));
assignment.setProject("project");
assignment.setRoles(Lists.newArrayList("role1", "role2"));
assignment.setUser("user");
return assignment;
}