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

    Role role = createTestRole();
    ldapService.updateRoles(Lists.newArrayList(role));
    role.getPermissions().add("update");
    role.getRoles().clear();
    ldapService.updateRoles(Lists.newArrayList(role));
    assertCorrectlyStored(role);
}