@Test
public void testUpdateAssignments_shouldUpdateAssignment() throws LdapInvalidAttributeValueException,
    NoSuchNodeException, MissingParentException {

    Assignment assignment = createTestAssignment();
    ldapService.updateAssignments(Lists.newArrayList(assignment));
    assignment.getPermissions().add("new");
    assignment.getRoles().add("new");
    ldapService.updateAssignments(Lists.newArrayList(assignment));
    assertCorrectlyStored(assignment);
}